Searched defs:rect (Results 1 - 25 of 1094) sorted by path

1234567891011>>

/external/chromium_org/android_webview/java/src/org/chromium/android_webview/
H A DAwContents.java1315 public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) { argument
1318 rect, immediate);
2248 bundle.putParcelable("rect", clipRect);
H A DAwScrollOffsetManager.java376 public boolean requestChildRectangleOnScreen(int childOffsetX, int childOffsetY, Rect rect, argument
388 rect.offset(childOffsetX, childOffsetY);
394 if (rect.bottom > screenBottom) {
396 if (rect.width() > 2 * oneThirdOfScreenHeight) {
399 scrollYDelta = rect.top - screenTop;
403 scrollYDelta = rect.top - (screenTop + oneThirdOfScreenHeight);
405 } else if (rect.top < screenTop) {
406 scrollYDelta = rect.top - screenTop;
413 if (rect.right > screenRight && rect
[all...]
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/
H A DExternalVideoSurfaceContainerTest.java30 public void notifyCalled(RectF rect) { argument
31 mRect = rect;
45 RectF rect = helper.getRectF();
46 if (Math.abs(rect.width() - widthCss) < epsilon
47 && Math.abs(rect.height() - heightCss) < epsilon) {
/external/chromium_org/android_webview/native/
H A Dexternal_video_surface_container_impl.cc62 int player_id, const gfx::RectF& rect) {
68 static_cast<jfloat>(rect.x()),
69 static_cast<jfloat>(rect.y()),
70 static_cast<jfloat>(rect.x() + rect.width()),
71 static_cast<jfloat>(rect.y() + rect.height()));
61 OnExternalVideoSurfacePositionChanged( int player_id, const gfx::RectF& rect) argument
/external/chromium_org/ash/accelerators/
H A Ddebug_commands.cc19 gfx::ImageSkia CreateWallpaperImage(SkColor fill, SkColor rect) { argument
27 paint.setColor(rect);
/external/chromium_org/ash/display/
H A Dscreen_ash.cc161 const gfx::Rect& rect) {
162 gfx::Point point = rect.origin();
165 return gfx::Rect(point, rect.size());
170 const gfx::Rect& rect) {
171 gfx::Point point = rect.origin();
174 return gfx::Rect(point, rect.size());
160 ConvertRectToScreen(aura::Window* window, const gfx::Rect& rect) argument
169 ConvertRectFromScreen(aura::Window* window, const gfx::Rect& rect) argument
/external/chromium_org/ash/frame/
H A Ddefault_header_painter.cc20 #include "ui/gfx/rect.h"
50 SkRect rect = gfx::RectToSkRect(bounds); local
58 path.addRoundRect(rect, radii, SkPath::kCW_Direction);
/external/chromium_org/ash/keyboard_overlay/
H A Dkeyboard_overlay_delegate.cc85 const gfx::Rect& rect = Shell::GetScreen()->GetDisplayNearestWindow( local
87 gfx::Rect bounds(rect.x() + (rect.width() - size.width()) / 2,
88 rect.bottom() - size.height(),
118 gfx::Rect rect = ash::Shell::GetScreen()->GetDisplayNearestWindow( local
120 const int width = min(kBaseWidth, rect.width() - kHorizontalMargin);
/external/chromium_org/ash/
H A Dscreen_util.cc57 const gfx::Rect& rect) {
58 gfx::Point point = rect.origin();
61 return gfx::Rect(point, rect.size());
66 const gfx::Rect& rect) {
67 gfx::Point point = rect.origin();
70 return gfx::Rect(point, rect.size());
56 ConvertRectToScreen(aura::Window* window, const gfx::Rect& rect) argument
65 ConvertRectFromScreen(aura::Window* window, const gfx::Rect& rect) argument
/external/chromium_org/ash/shell/
H A Dpanel_window.cc26 views::Widget* PanelWindow::CreatePanelWindow(const gfx::Rect& rect) { argument
28 panel_window->params().bounds = rect;
/external/chromium_org/ash/system/tray/
H A Dtray_background_view.cc34 #include "ui/gfx/rect.h"
557 gfx::Rect rect; local
559 rect = anchor_widget->GetWindowBoundsInScreen();
563 rect.Inset(
569 rect.Inset(0, 0, kBubblePaddingVerticalSide + 4,
572 rect.Inset(kBubblePaddingVerticalSide, 0, 0,
586 rect.Inset(vertical_alignment, 0, 0, horizontal_alignment);
588 rect.Inset(0, 0, vertical_alignment, horizontal_alignment);
596 rect = target_root->bounds();
599 rect
[all...]
/external/chromium_org/ash/test/
H A Dtest_screenshot_delegate.cc24 aura::Window* window, const gfx::Rect& rect) {
26 last_rect_ = rect;
23 HandleTakePartialScreenshot( aura::Window* window, const gfx::Rect& rect) argument
/external/chromium_org/ash/wm/
H A Dapp_list_controller.cc65 // Offset given |rect| towards shelf.
66 gfx::Rect OffsetTowardsShelf(const gfx::Rect& rect, views::Widget* widget) { argument
70 gfx::Rect offseted(rect);
H A Dcoordinate_conversion.cc12 #include "ui/gfx/rect.h"
28 aura::Window* GetRootWindowMatching(const gfx::Rect& rect) { argument
29 const gfx::Display& display = Shell::GetScreen()->GetDisplayMatching(rect);
/external/chromium_org/ash/wm/dock/
H A Ddocked_window_layout_manager.cc37 #include "ui/gfx/rect.h"
99 gfx::Rect rect = gfx::Rect(GetWindowBoundsInScreen().size()); variable
108 ? rect.width() - shelf_background.width()
112 rect.height(),
123 rect.width() - shelf_background.width(),
124 rect.height(),
/external/chromium_org/ash/wm/maximize_mode/
H A Dmaximize_mode_window_manager_unittest.cc160 gfx::Rect rect(80, 90, 100, 110);
165 scoped_ptr<aura::Window> w4(CreateWindow(ui::wm::WINDOW_TYPE_PANEL, rect));
166 scoped_ptr<aura::Window> w5(CreateWindow(ui::wm::WINDOW_TYPE_POPUP, rect));
167 scoped_ptr<aura::Window> w6(CreateWindow(ui::wm::WINDOW_TYPE_CONTROL, rect));
168 scoped_ptr<aura::Window> w7(CreateWindow(ui::wm::WINDOW_TYPE_MENU, rect));
169 scoped_ptr<aura::Window> w8(CreateWindow(ui::wm::WINDOW_TYPE_TOOLTIP, rect));
194 EXPECT_EQ(rect.ToString(), w4->bounds().ToString());
195 EXPECT_EQ(rect.ToString(), w5->bounds().ToString());
196 EXPECT_EQ(rect.ToString(), w6->bounds().ToString());
197 EXPECT_EQ(rect
887 gfx::Rect rect; local
[all...]
/external/chromium_org/ash/wm/overview/
H A Dscoped_transform_overview_window.cc171 const gfx::Rect& rect,
173 DCHECK(!rect.IsEmpty());
176 std::min(static_cast<float>(bounds.width()) / rect.width(),
177 static_cast<float>(bounds.height()) / rect.height()));
178 return gfx::Rect(bounds.x() + 0.5 * (bounds.width() - scale * rect.width()),
179 bounds.y() + 0.5 * (bounds.height() - scale * rect.height()),
180 rect.width() * scale,
181 rect.height() * scale);
170 ShrinkRectToFitPreservingAspectRatio( const gfx::Rect& rect, const gfx::Rect& bounds) argument
/external/chromium_org/base/android/jni_generator/java/src/org/chromium/example/jni_generator/
H A DSampleForTests.java207 private native void nativeSetNonPODDatatype(Rect rect); argument
/external/chromium_org/cc/base/
H A Dinvalidation_region.cc29 void InvalidationRegion::Union(const gfx::Rect& rect) { argument
30 region_.Union(rect);
H A Dmath_util.cc14 #include "ui/gfx/rect.h"
192 const gfx::Rect& rect) {
198 return rect + offset;
203 return gfx::ToEnclosedRect(rect + offset);
207 quad[0] = rect.x();
208 quad[1] = rect.y();
209 quad[2] = rect.right();
210 quad[3] = rect.bottom();
392 // enclosing rect directly.
793 void MathUtil::AddToTracedValue(const gfx::RectF& rect, argument
190 MapEnclosedRectWith2dAxisAlignedTransform( const gfx::Transform& transform, const gfx::Rect& rect) argument
[all...]
H A Dmath_util_unittest.cc12 #include "ui/gfx/rect.h"
27 gfx::RectF rect = gfx::RectF(0, 0, 1, 1); local
28 gfx::RectF projected_rect = MathUtil::ProjectClippedRect(transform, rect);
41 // The bounds of the enclosing clipped rect should be -100 to -10 for both x
44 // then the enclosing clipped rect will be computed incorrectly.
61 // The bounds of the enclosing rect should be -100 to -10 for both x and y.
64 // then the enclosing clipped rect will be computed incorrectly.
H A Dregion.cc20 Region::Region(const gfx::Rect& rect) argument
21 : skregion_(gfx::RectToSkIRect(rect)) {
27 const Region& Region::operator=(const gfx::Rect& rect) { argument
28 skregion_ = SkRegion(gfx::RectToSkIRect(rect));
57 bool Region::Contains(const gfx::Rect& rect) const {
58 if (rect.IsEmpty())
60 return skregion_.contains(gfx::RectToSkIRect(rect));
69 bool Region::Intersects(const gfx::Rect& rect) const {
70 return skregion_.intersects(gfx::RectToSkIRect(rect));
77 void Region::Subtract(const gfx::Rect& rect) { argument
92 Union(const gfx::Rect& rect) argument
100 Intersect(const gfx::Rect& rect) argument
[all...]
H A Dregion.h13 #include "ui/gfx/rect.h"
30 Region(const gfx::Rect& rect); // NOLINT(runtime/explicit)
33 const Region& operator=(const gfx::Rect& rect);
42 bool Contains(const gfx::Rect& rect) const;
45 bool Intersects(const gfx::Rect& rect) const;
48 void Subtract(const gfx::Rect& rect);
51 void Union(const gfx::Rect& rect);
53 void Intersect(const gfx::Rect& rect);
74 gfx::Rect rect() const { function in class:cc::Region::Iterator
75 return gfx::SkIRectToRect(it_.rect());
[all...]
H A Dsimple_enclosed_region.h11 #include "ui/gfx/rect.h"
25 explicit SimpleEnclosedRegion(const gfx::Rect& rect) : rect_(rect) {} argument
31 const SimpleEnclosedRegion& operator=(const gfx::Rect& rect) { argument
32 rect_ = rect;
45 bool Contains(const gfx::Rect& rect) const { return rect_.Contains(rect); }
50 bool Intersects(const gfx::Rect& rect) const {
51 return rect_.Intersects(rect);
H A Dsimple_enclosed_region_unittest.cc17 bool ExpectRegionEq(const gfx::Rect& rect, const SimpleEnclosedRegion& region) { argument
21 if (!rect.IsEmpty())
22 expected_rects.push_back(rect);
27 if (rect.IsEmpty() != region.IsEmpty()) {
28 LOG(ERROR) << "Expected: " << rect.IsEmpty()
100 // The SimpleEnclosedRegion only holds up to 1 rect.
328 // Anything Union contained rect = Anything.
332 // Anything Union containing rect = containing rect.
338 // Union with a smaller disjoint rect i
[all...]

Completed in 417 milliseconds

1234567891011>>