Home
last modified time | relevance | path

Searched refs:Rect (Results 1 – 25 of 2554) sorted by relevance

12345678910>>...103

/external/chromium_org/chrome/browser/ui/window_sizer/
Dwindow_sizer_unittest.cc14 gfx::Rect window_bounds; in TEST()
15 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), in TEST()
16 gfx::Rect(), DEFAULT, NULL, gfx::Rect(), &window_bounds); in TEST()
17 EXPECT_EQ(gfx::Rect(kWindowTilePixels, kWindowTilePixels, in TEST()
24 gfx::Rect window_bounds; in TEST()
25 GetWindowBounds(p1024x768, taskbar_bottom_work_area, gfx::Rect(), in TEST()
26 gfx::Rect(), gfx::Rect(), DEFAULT, NULL, gfx::Rect(), in TEST()
28 EXPECT_EQ(gfx::Rect(kWindowTilePixels, kWindowTilePixels, in TEST()
36 gfx::Rect window_bounds; in TEST()
37 GetWindowBounds(p1024x768, taskbar_right_work_area, gfx::Rect(), in TEST()
[all …]
Dwindow_sizer_common_unittest.cc74 const gfx::Rect& match_rect) const OVERRIDE { in GetDisplayMatching()
79 gfx::Rect overlap = displays_[i].bounds(); in GetDisplayMatching()
102 void AddDisplay(const gfx::Rect& bounds, in AddDisplay()
103 const gfx::Rect& work_area) { in AddDisplay()
122 const gfx::Rect& bounds) const OVERRIDE { in GetTargetDisplay()
141 void TestStateProvider::SetPersistentState(const gfx::Rect& bounds, in SetPersistentState()
142 const gfx::Rect& work_area, in SetPersistentState()
151 void TestStateProvider::SetLastActiveState(const gfx::Rect& bounds, in SetLastActiveState()
160 gfx::Rect* bounds, in GetPersistentState()
161 gfx::Rect* saved_work_area, in GetPersistentState()
[all …]
Dwindow_sizer_ash_unittest.cc57 virtual gfx::Rect GetBounds() const OVERRIDE { in GetBounds()
82 const gfx::Rect& bounds, in CreateTestBrowserWindow()
101 gfx::Rect window_bounds; in TEST_F()
102 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), in TEST_F()
103 gfx::Rect(), DEFAULT, NULL, gfx::Rect(), &window_bounds); in TEST_F()
104 EXPECT_EQ(gfx::Rect(ash::WindowPositioner::kDesktopBorderSize, in TEST_F()
112 gfx::Rect window_bounds; in TEST_F()
113 GetWindowBounds(p1024x768, taskbar_bottom_work_area, gfx::Rect(), in TEST_F()
114 gfx::Rect(), gfx::Rect(), DEFAULT, NULL, gfx::Rect(), in TEST_F()
116 EXPECT_EQ(gfx::Rect(ash::WindowPositioner::kDesktopBorderSize, in TEST_F()
[all …]
Dwindow_sizer_common_unittest.h17 static const gfx::Rect p1024x768(0, 0, 1024, 768);
18 static const gfx::Rect p1280x1024(0, 0, 1280, 1024);
19 static const gfx::Rect p1600x1200(0, 0, 1600, 1200);
20 static const gfx::Rect p1680x1050(0, 0, 1680, 1050);
21 static const gfx::Rect p1920x1200(0, 0, 1920, 1200);
25 static const gfx::Rect left_s1024x768(-1024, 0, 1024, 768);
29 static const gfx::Rect right_s1024x768(1024, 0, 1024, 768);
33 static const gfx::Rect top_s1024x768(0, -768, 1024, 768);
37 static const gfx::Rect bottom_s1024x768(0, 768, 1024, 768);
41 static const gfx::Rect bottom_s1600x1200(0, 1200, 1600, 1200);
[all …]
/external/chromium/chrome/browser/ui/
Dwindow_sizer_unittest.cc12 static const gfx::Rect tentwentyfour(0, 0, 1024, 768);
13 static const gfx::Rect twelveeighty(0, 0, 1280, 1024);
14 static const gfx::Rect sixteenhundred(0, 0, 1600, 1200);
15 static const gfx::Rect sixteeneighty(0, 0, 1680, 1050);
16 static const gfx::Rect nineteentwenty(0, 0, 1920, 1200);
20 static const gfx::Rect left_nonprimary(-1024, 0, 1024, 768);
24 static const gfx::Rect right_nonprimary(1024, 0, 1024, 768);
28 static const gfx::Rect top_nonprimary(0, -768, 1024, 768);
32 static const gfx::Rect bottom_nonprimary(0, 768, 1024, 768);
35 static const gfx::Rect taskbar_bottom_work_area(0, 0, 1024, 734);
[all …]
Dwindow_sizer.h49 virtual gfx::Rect GetPrimaryMonitorWorkArea() const = 0;
52 virtual gfx::Rect GetPrimaryMonitorBounds() const = 0;
56 virtual gfx::Rect GetMonitorWorkAreaMatching(
57 const gfx::Rect& match_rect) const = 0;
62 const gfx::Rect& match_rect) const = 0;
76 gfx::Rect GetWorkAreaAt(size_t index) const { in GetWorkAreaAt()
81 std::vector<gfx::Rect> work_areas_;
92 virtual bool GetPersistentState(gfx::Rect* bounds,
94 gfx::Rect* work_area) const = 0;
99 virtual bool GetLastActiveWindowState(gfx::Rect* bounds) const = 0;
[all …]
/external/chromium_org/cc/base/
Dregion_unittest.cc44 r.Union(gfx::Rect(35, 35, 1, 1)); in TEST()
51 r.Union(gfx::Rect(30, 30, 10, 10)); in TEST()
58 r.Union(gfx::Rect(31, 40, 10, 10)); in TEST()
73 r.Union(gfx::Rect(42, 40, 10, 10)); in TEST()
93 r.Union(gfx::Rect(5, 0, 10, 10)); in TEST()
94 r.Union(gfx::Rect(0, 5, 10, 10)); in TEST()
95 r.Subtract(gfx::Rect(7, 7, 10, 0)); in TEST()
122 TEST_NO_INTERSECT(gfx::Rect(), gfx::Rect()); in TEST()
123 TEST_NO_INTERSECT(gfx::Rect(), gfx::Rect(0, 0, 1, 1)); in TEST()
124 TEST_NO_INTERSECT(gfx::Rect(), gfx::Rect(1, 1, 1, 1)); in TEST()
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DRectTest.java3 import android.graphics.Rect;
20 Rect r = new Rect(1, 2, 3, 4); in constructorSetsCoordinates()
29 Rect existingRect = new Rect(1, 2, 3, 4); in secondConstructorSetsCoordinates()
30 Rect r = new Rect(existingRect); in secondConstructorSetsCoordinates()
40 Rect r = new Rect(0, 0, 10, 10); in width()
46 Rect r = new Rect(0, 0, 10, 10); in height()
52 Rect a = new Rect(1, 2, 3, 4); in doesntEqual()
53 Rect b = new Rect(2, 3, 4, 5); in doesntEqual()
59 Rect a = new Rect(1, 2, 3, 4); in equals()
60 Rect b = new Rect(1, 2, 3, 4); in equals()
[all …]
/external/chromium_org/ui/gfx/
Drect.h38 class GFX_EXPORT Rect
39 : public RectBase<Rect, Point, Size, Insets, Vector2d, int> {
41 Rect() : RectBase<Rect, Point, Size, Insets, Vector2d, int>(Point()) {} in Rect() function
43 Rect(int width, int height) in Rect() function
44 : RectBase<Rect, Point, Size, Insets, Vector2d, int> in Rect()
47 Rect(int x, int y, int width, int height) in Rect() function
48 : RectBase<Rect, Point, Size, Insets, Vector2d, int> in Rect()
52 explicit Rect(const RECT& r);
54 explicit Rect(const CGRect& r);
56 explicit Rect(const GdkRectangle& r);
[all …]
Drect_unittest.cc38 Rect rect(value.rect_x, value.rect_y, value.rect_width, value.rect_height); in TEST()
67 Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); in TEST()
68 Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); in TEST()
109 Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); in TEST()
110 Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); in TEST()
111 Rect r3(tests[i].x3, tests[i].y3, tests[i].w3, tests[i].h3); in TEST()
112 Rect ir = IntersectRects(r1, r2); in TEST()
158 Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); in TEST()
159 Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); in TEST()
160 Rect r3(tests[i].x3, tests[i].y3, tests[i].w3, tests[i].h3); in TEST()
[all …]
Drect.cc22 template class RectBase<Rect, Point, Size, Insets, Vector2d, int>;
24 typedef class RectBase<Rect, Point, Size, Insets, Vector2d, int> RectBaseT;
27 Rect::Rect(const RECT& r) in Rect() function in gfx::Rect
33 Rect::Rect(const CGRect& r) in Rect() function in gfx::Rect
39 Rect::Rect(const GdkRectangle& r) in Rect() function in gfx::Rect
47 RECT Rect::ToRECT() const { in ToRECT()
56 CGRect Rect::ToCGRect() const { in ToCGRect()
60 GdkRectangle Rect::ToGdkRectangle() const { in ToGdkRectangle()
66 std::string Rect::ToString() const { in ToString()
72 Rect operator+(const Rect& lhs, const Vector2d& rhs) { in operator +()
[all …]
/external/chromium_org/cc/trees/
Docclusion_tracker_unittest.cc42 void SetOpaqueContentsRect(gfx::Rect opaque_contents_rect) { in SetOpaqueContentsRect()
51 gfx::Rect opaque_contents_rect_;
66 void SetOpaqueContentsRect(gfx::Rect opaque_contents_rect) { in SetOpaqueContentsRect()
73 gfx::Rect opaque_contents_rect_;
87 TestOcclusionTrackerWithClip(gfx::Rect viewport_rect, in TestOcclusionTrackerWithClip()
92 explicit TestOcclusionTrackerWithClip(gfx::Rect viewport_rect) in TestOcclusionTrackerWithClip()
97 gfx::Rect content_rect) const { in OccludedLayer()
107 gfx::Rect UnoccludedLayerContentRect(const LayerType* layer, in UnoccludedLayerContentRect()
108 gfx::Rect content_rect) const { in UnoccludedLayerContentRect()
255 layer_ptr->SetOpaqueContentsRect(gfx::Rect(bounds)); in CreateDrawingLayer()
[all …]
Dlayer_tree_host_pixeltest_readback.cc74 gfx::Rect copy_subrect_;
79 gfx::Rect(200, 200), SK_ColorWHITE); in TEST_F()
82 gfx::Rect(200, 200), SK_ColorGREEN); in TEST_F()
93 gfx::Rect(200, 200), SK_ColorWHITE); in TEST_F()
96 gfx::Rect(200, 200), SK_ColorGREEN); in TEST_F()
107 gfx::Rect(200, 200), SK_ColorWHITE); in TEST_F()
110 gfx::Rect(200, 200), SK_ColorGREEN); in TEST_F()
121 gfx::Rect(200, 200), SK_ColorWHITE); in TEST_F()
124 gfx::Rect(200, 200), SK_ColorGREEN); in TEST_F()
136 gfx::Rect(200, 200), SK_ColorWHITE); in TEST_F()
[all …]
Dquad_culler_unittest.cc33 TestOcclusionTrackerImpl(gfx::Rect scissor_rect_in_screen, in TestOcclusionTrackerImpl()
55 gfx::Rect layer_rect, in MakeLayer()
58 gfx::Rect layer_opaque_rect, in MakeLayer()
79 gfx::Rect tile_opaque_rect = in MakeLayer()
87 gfx::Rect rect_in_target = MathUtil::MapClippedRect( in MakeLayer()
135 gfx::Rect root_rect = gfx::Rect(root_size); \
137 gfx::Rect child_rect = gfx::Rect(child_size);
147 gfx::Rect(), in TEST_F()
154 gfx::Rect(), in TEST_F()
156 TestOcclusionTrackerImpl occlusion_tracker(gfx::Rect(-100, -100, 1000, 1000)); in TEST_F()
[all …]
/external/chromium_org/cc/resources/
Dpicture_layer_tiling_unittest.cc19 static gfx::Rect ViewportInLayerSpace( in ViewportInLayerSpace()
25 return gfx::Rect(); in ViewportInLayerSpace()
69 void SetLiveRectAndVerifyTiles(gfx::Rect live_tiles_rect) { in SetLiveRectAndVerifyTiles()
82 gfx::Rect request_rect, in VerifyTilesExactlyCoverRect()
83 gfx::Rect expect_rect) { in VerifyTilesExactlyCoverRect()
99 gfx::Rect geometry = iter.geometry_rect(); in VerifyTilesExactlyCoverRect()
118 void VerifyTilesExactlyCoverRect(float rect_scale, gfx::Rect rect) { in VerifyTilesExactlyCoverRect()
124 gfx::Rect rect, in VerifyTiles()
125 base::Callback<void(Tile* tile, gfx::Rect geometry_rect)> callback) { in VerifyTiles()
135 gfx::Rect rect, in VerifyTiles()
[all …]
Dtile_priority_unittest.cc14 gfx::Rect target(0, 0, 800, 600); in TEST()
15 gfx::Rect current(100, 100, 100, 100); in TEST()
17 gfx::Rect(-200, 0, 100, 100), current, 1, target)); in TEST()
19 gfx::Rect(-100, 0, 100, 100), current, 1, target)); in TEST()
21 gfx::Rect(400, 400, 100, 100), current, 1, target)); in TEST()
23 current = gfx::Rect(-300, -300, 100, 100); in TEST()
25 gfx::Rect(0, 0, 100, 100), current, 1, target)); in TEST()
27 gfx::Rect(-200, -200, 100, 100), current, 1, target)); in TEST()
29 gfx::Rect(-400, -400, 100, 100), current, 1, target)); in TEST()
34 gfx::Rect target(0, 0, 800, 600); in TEST()
[all …]
Dpicture_pile_impl_unittest.cc35 pile->add_draw_rect_with_paint(gfx::Rect(0, 0, 400, 400), solid_paint); in TEST()
42 gfx::Rect rect(x, y, 100, 100); in TEST()
50 pile->add_draw_rect_with_paint(gfx::Rect(50, 50, 1, 1), non_solid_paint); in TEST()
54 pile->AnalyzeInRect(gfx::Rect(0, 0, 100, 100), 1.0, &analysis); in TEST()
57 pile->AnalyzeInRect(gfx::Rect(100, 0, 100, 100), 1.0, &analysis); in TEST()
63 pile->AnalyzeInRect(gfx::Rect(350, 0, 100, 100), 1.0, &analysis); in TEST()
68 pile->AnalyzeInRect(gfx::Rect(0, 350, 100, 100), 1.0, &analysis); in TEST()
73 pile->AnalyzeInRect(gfx::Rect(350, 350, 100, 100), 1.0, &analysis); in TEST()
93 pile->add_draw_rect_with_paint(gfx::Rect(0, 0, 400, 400), solid_paint); in TEST()
100 gfx::Rect rect(x, y, 10, 10); in TEST()
[all …]
Dpicture_pile.cc27 bool rect_sort_y(const gfx::Rect &r1, const gfx::Rect &r2) { in rect_sort_y()
31 bool rect_sort_x(const gfx::Rect &r1, const gfx::Rect &r2) { in rect_sort_x()
35 float do_clustering(const std::vector<gfx::Rect>& tiles, in do_clustering()
36 std::vector<gfx::Rect>* clustered_rects) { in do_clustering()
44 gfx::Rect cur_record_rect; in do_clustering()
47 for (std::vector<gfx::Rect>::const_iterator it = tiles.begin(); in do_clustering()
50 gfx::Rect invalid_tile = *it; in do_clustering()
57 gfx::Rect proposed_union = cur_record_rect; in do_clustering()
93 float ClusterTiles(const std::vector<gfx::Rect>& invalid_tiles, in ClusterTiles()
94 std::vector<gfx::Rect>* record_rects) { in ClusterTiles()
[all …]
/external/chromium_org/chrome/browser/ui/views/tabs/
Dtab_strip_unittest.cc102 gfx::Rect GetTabHitTestMask(Tab* tab) { in GetTabHitTestMask()
111 gfx::Rect GetTabCloseHitTestMask(Tab* tab, bool padding) { in GetTabCloseHitTestMask()
246 left_tab->SetBoundsRect(gfx::Rect(gfx::Point(0, 0), gfx::Size(200, 20))); in TEST_F()
249 active_tab->SetBoundsRect(gfx::Rect(gfx::Point(150, 0), gfx::Size(200, 20))); in TEST_F()
253 right_tab->SetBoundsRect(gfx::Rect(gfx::Point(300, 0), gfx::Size(200, 20))); in TEST_F()
256 most_right_tab->SetBoundsRect(gfx::Rect(gfx::Point(450, 0), in TEST_F()
268 gfx::Rect tab_bounds = GetTabHitTestMask(left_tab); in TEST_F()
269 EXPECT_EQ(gfx::Rect(6, 2, 61, 27).ToString(), tab_bounds.ToString()); in TEST_F()
273 gfx::Rect contents_bounds = GetTabCloseHitTestMask(left_tab, false); in TEST_F()
281 EXPECT_TRUE(left_tab->HitTestRect(gfx::Rect(6, 2, 2, 2))); in TEST_F()
[all …]
/external/chromium_org/ppapi/cpp/
Drect.cc26 void Rect::Inset(int32_t left, int32_t top, int32_t right, int32_t bottom) { in Inset()
32 void Rect::Offset(int32_t horizontal, int32_t vertical) { in Offset()
37 bool Rect::Contains(int32_t point_x, int32_t point_y) const { in Contains()
42 bool Rect::Contains(const Rect& rect) const { in Contains()
47 bool Rect::Intersects(const Rect& rect) const { in Intersects()
52 Rect Rect::Intersect(const Rect& rect) const { in Intersect()
61 return Rect(rx, ry, rr - rx, rb - ry); in Intersect()
64 Rect Rect::Union(const Rect& rect) const { in Union()
76 return Rect(rx, ry, rr - rx, rb - ry); in Union()
79 Rect Rect::Subtract(const Rect& rect) const { in Subtract()
[all …]
Drect.h19 class Rect {
24 Rect() { in Rect() function
36 Rect(const PP_Rect& rect) { // Implicit. in Rect() function
49 Rect(int32_t w, int32_t h) { in Rect() function
64 Rect(int32_t x, int32_t y, int32_t w, int32_t h) { in Rect() function
76 explicit Rect(const Size& s) { in Rect() function
90 Rect(const Point& origin, const Size& size) { in Rect() function
96 ~Rect() { in ~Rect()
332 bool Contains(const Rect& rect) const;
340 bool Intersects(const Rect& rect) const;
[all …]
/external/chromium_org/content/renderer/
Ddisambiguation_popup_helper_unittest.cc35 gfx::Rect tap_rect(1000, 1000, 10, 10); in TEST_F()
37 target_rects[0] = gfx::Rect(-20, -20, 10, 10); in TEST_F()
39 gfx::Rect zoom_rect; in TEST_F()
44 EXPECT_TRUE(gfx::Rect(kVisibleContentSize_).Contains(zoom_rect)); in TEST_F()
48 EXPECT_TRUE(gfx::Rect(kScreenSize_).Contains(gfx::Rect(scaled_size))); in TEST_F()
52 gfx::Rect tap_rect(-5, -5, 20, 20); in TEST_F()
54 target_rects[0] = gfx::Rect(10, 10, 1, 1); in TEST_F()
56 gfx::Rect zoom_rect; in TEST_F()
61 EXPECT_TRUE(gfx::Rect(kVisibleContentSize_).Contains(zoom_rect)); in TEST_F()
66 EXPECT_TRUE(gfx::Rect(kScreenSize_).Contains(gfx::Rect(scaled_size))); in TEST_F()
[all …]
Dpaint_aggregator_unittest.cc18 gfx::Rect rect(2, 4, 10, 16); in TEST()
34 gfx::Rect r1(2, 4, 2, 40); in TEST()
35 gfx::Rect r2(4, 2, 40, 2); in TEST()
40 gfx::Rect expected_bounds = gfx::UnionRects(r1, r2); in TEST()
58 gfx::Rect r1(2, 4, 2, 1000); in TEST()
59 gfx::Rect r2(5, 2, 2, 1000); in TEST()
64 gfx::Rect expected_bounds = gfx::UnionRects(r1, r2); in TEST()
79 gfx::Rect rect(1, 2, 3, 4); in TEST()
95 gfx::Rect resulting_damage = update.GetScrollDamage(); in TEST()
96 gfx::Rect expected_damage(1, 2, 1, 4); in TEST()
[all …]
/external/chromium_org/chrome/browser/ui/ash/
Dwindow_positioner_unittest.cc105 window_->SetBounds(gfx::Rect(16, 32, 640, 320)); in SetUp()
107 popup_->SetBounds(gfx::Rect(16, 32, 128, 256)); in SetUp()
154 const gfx::Rect work_area = in TEST_F()
161 gfx::Rect popup_position(0, 0, 200, 200); in TEST_F()
163 gfx::Rect cascade_1 = window_positioner()->GetPopupPosition(popup_position); in TEST_F()
164 EXPECT_EQ(gfx::Rect(work_area.x() + grid_size_, work_area.y() + grid_size_, in TEST_F()
168 gfx::Rect cascade_2 = window_positioner()->GetPopupPosition(popup_position); in TEST_F()
169 EXPECT_EQ(gfx::Rect(work_area.x() + 2 * grid_size_, in TEST_F()
175 window()->SetBounds(gfx::Rect(work_area.x() + popup_position.width() - 1, in TEST_F()
182 gfx::Rect cascade_3 = window_positioner()->GetPopupPosition(popup_position); in TEST_F()
[all …]
/external/chromium_org/ash/wm/
Dwindow_positioner.h20 class Rect; variable
57 gfx::Rect* bounds_in_out,
61 static gfx::Rect GetDefaultWindowBounds(const gfx::Display& display);
86 gfx::Rect GetPopupPosition(const gfx::Rect& old_pos);
97 gfx::Rect SmartPopupPosition(const gfx::Rect& old_pos,
98 const gfx::Rect& work_area,
102 gfx::Rect NormalPopupPosition(const gfx::Rect& old_pos,
103 const gfx::Rect& work_area);
106 gfx::Rect AlignPopupPosition(const gfx::Rect &pos,
107 const gfx::Rect &work_area,

12345678910>>...103