/external/chromium/chrome/browser/ui/ |
D | window_sizer_unittest.cc | 12 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 …]
|
D | window_sizer.h | 49 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 …]
|
D | window_sizer.cc | 26 virtual bool GetPersistentState(gfx::Rect* bounds, in GetPersistentState() 28 gfx::Rect* work_area) const { in GetPersistentState() 70 virtual bool GetLastActiveWindowState(gfx::Rect* bounds) const { in GetLastActiveWindowState() 135 const gfx::Rect& specified_bounds, in GetBrowserWindowBounds() 137 gfx::Rect* window_bounds, in GetBrowserWindowBounds() 158 void WindowSizer::DetermineWindowBounds(const gfx::Rect& specified_bounds, in DetermineWindowBounds() 159 gfx::Rect* bounds, in DetermineWindowBounds() 174 bool WindowSizer::GetLastWindowBounds(gfx::Rect* bounds) const { in GetLastWindowBounds() 178 gfx::Rect last_window_bounds = *bounds; in GetLastWindowBounds() 181 gfx::Rect(), in GetLastWindowBounds() [all …]
|
D | window_sizer_win.cc | 22 virtual gfx::Rect GetPrimaryMonitorWorkArea() const { in GetPrimaryMonitorWorkArea() 23 return gfx::Rect(GetMonitorInfoForMonitor(MonitorFromWindow(NULL, in GetPrimaryMonitorWorkArea() 27 virtual gfx::Rect GetPrimaryMonitorBounds() const { in GetPrimaryMonitorBounds() 28 return gfx::Rect(GetMonitorInfoForMonitor(MonitorFromWindow(NULL, in GetPrimaryMonitorBounds() 32 virtual gfx::Rect GetMonitorWorkAreaMatching( in GetMonitorWorkAreaMatching() 33 const gfx::Rect& match_rect) const { in GetMonitorWorkAreaMatching() 37 return gfx::Rect(monitor_info.rcWork); in GetMonitorWorkAreaMatching() 41 const gfx::Rect& match_rect) const { in GetBoundsOffsetMatching() 63 reinterpret_cast<std::vector<gfx::Rect>*>(data)->push_back( in MonitorEnumProc() 64 gfx::Rect(GetMonitorInfoForMonitor(monitor).rcWork)); in MonitorEnumProc()
|
D | window_sizer_mac.mm | 23 virtual gfx::Rect GetPrimaryMonitorWorkArea() const { 31 gfx::Rect rect = gfx::Rect(NSRectToCGRect(visible_frame)); 37 virtual gfx::Rect GetPrimaryMonitorBounds() const { 41 return gfx::Rect(NSRectToCGRect([primary frame])); 44 virtual gfx::Rect GetMonitorWorkAreaMatching( 45 const gfx::Rect& match_rect) const { 51 const gfx::Rect& match_rect) const { 53 gfx::Rect bounds = ConvertCoordinateSystem([match_screen frame]); 54 gfx::Rect work_area = ConvertCoordinateSystem([match_screen visibleFrame]); 64 NSScreen* GetMatchingScreen(const gfx::Rect& match_rect) const { [all …]
|
D | window_sizer_linux.cc | 26 virtual gfx::Rect GetPrimaryMonitorWorkArea() const { in GetPrimaryMonitorWorkArea() 27 gfx::Rect rect; in GetPrimaryMonitorWorkArea() 35 virtual gfx::Rect GetPrimaryMonitorBounds() const { in GetPrimaryMonitorBounds() 39 return gfx::Rect(rect); in GetPrimaryMonitorBounds() 42 virtual gfx::Rect GetMonitorWorkAreaMatching( in GetMonitorWorkAreaMatching() 43 const gfx::Rect& match_rect) const { in GetMonitorWorkAreaMatching() 49 const gfx::Rect& match_rect) const { in GetBoundsOffsetMatching() 65 bool GetScreenWorkArea(gfx::Rect* out_rect) const { in GetScreenWorkArea() 112 gfx::Rect monitor_bounds = provider->GetPrimaryMonitorWorkArea(); in GetDefaultPopupOrigin()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | RectTest.java | 3 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/chrome/browser/ui/views/bubble/ |
D | border_contents_unittest.cc | 14 void set_monitor_bounds(const gfx::Rect& bounds) { in set_monitor_bounds() 21 virtual gfx::Rect GetMonitorBounds(const gfx::Rect& rect) { in GetMonitorBounds() 26 gfx::Rect monitor_bounds_; 38 gfx::Rect contents_bounds; in TEST_F() 39 gfx::Rect window_bounds; in TEST_F() 40 border_contents.set_monitor_bounds(gfx::Rect(0, 0, 1000, 1000)); in TEST_F() 42 gfx::Rect(100, 100, 50, 50), // |position_relative_to| in TEST_F() 59 gfx::Rect(100, 100, 50, 50), // |position_relative_to| in TEST_F() 75 gfx::Rect(100, 100, 50, 50), // |position_relative_to| in TEST_F() 91 gfx::Rect(100, 100, 50, 50), // |position_relative_to| in TEST_F() [all …]
|
D | border_contents.h | 32 const gfx::Rect& position_relative_to, // In screen coordinates 36 gfx::Rect* contents_bounds, // Returned in window coordinates 37 gfx::Rect* window_bounds); // Returned in screen coordinates 44 virtual gfx::Rect GetMonitorBounds(const gfx::Rect& rect); 59 const gfx::Rect& position_relative_to, 60 const gfx::Rect& monitor_bounds, 63 gfx::Rect* window_bounds); 69 static bool ComputeOffScreenInsets(const gfx::Rect& monitor_bounds, 70 const gfx::Rect& window_bounds,
|
D | border_contents.cc | 30 const gfx::Rect& position_relative_to, in SizeAndGetBounds() 34 gfx::Rect* contents_bounds, in SizeAndGetBounds() 35 gfx::Rect* window_bounds) { in SizeAndGetBounds() 51 gfx::Rect monitor_bounds = GetMonitorBounds(position_relative_to); in SizeAndGetBounds() 68 *contents_bounds = gfx::Rect(gfx::Point(), window_bounds->size()); in SizeAndGetBounds() 75 gfx::Rect BorderContents::GetMonitorBounds(const gfx::Rect& rect) { in GetMonitorBounds() 83 const gfx::Rect& position_relative_to, in MirrorArrowIfOffScreen() 84 const gfx::Rect& monitor_bounds, in MirrorArrowIfOffScreen() 87 gfx::Rect* window_bounds) { in MirrorArrowIfOffScreen() 118 bool BorderContents::ComputeOffScreenInsets(const gfx::Rect& monitor_bounds, in ComputeOffScreenInsets() [all …]
|
/external/opencv/cvaux/src/ |
D | cvface.cpp | 138 CvRect Rect = *(CvRect*)lpCandidat; in CheckElem() local 140 if (Rect.height > Rect.width) in CheckElem() 144 long Size = Rect.width*Rect.height; in CheckElem() 154 long x = Rect.x + cvRound(Rect.width/2); in CheckElem() 155 long y = Rect.y + cvRound(Rect.height/2); in CheckElem() 319 CvRect Rect = *(CvRect*)m_lpIdealFace[i].GetContour(); in ShowIdeal() local 320 CvPoint p1 = cvPoint(Rect.x,Rect.y); in ShowIdeal() 321 CvPoint p2 = cvPoint(Rect.x + Rect.width,Rect.y + Rect.height); in ShowIdeal() 327 inline void RFace::ResizeRect(CvRect Rect,CvRect * lpRect,long lDir,long lD) in ResizeRect() argument 331 lpRect->x = Rect.x - lD; in ResizeRect() [all …]
|
/external/webkit/Source/WebKit/mac/Misc/ |
D | QuickDrawCompatibility.h | 47 extern QDErr NewGWorldFromPtr(GWorldPtr*, UInt32, const Rect*, CTabHandle, GDHandle, GWorldFlags, P… 48 extern Rect* GetPortBounds(CGrafPtr, Rect*); 49 extern Rect* GetRegionBounds(RgnHandle, Rect*); 60 extern void MacSetRect(Rect*, short, short, short, short); 64 extern void OffsetRect(Rect*, short, short); 66 extern void PaintRect(const Rect*); 69 extern void RectRgn(RgnHandle, const Rect*);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowRect.java | 3 import android.graphics.Rect; 10 @Implements(Rect.class) 12 @RealObject Rect realRect; 21 public void __constructor__(Rect otherRect) { in __constructor__() 29 public void set(Rect rect) { in set() 59 Rect r = (Rect) obj; in equals() 86 public boolean contains(Rect r) { in contains() 93 public static boolean intersects(Rect a, Rect b) { in intersects() 99 public boolean intersect(Rect r) { in intersect() 105 return intersect(new Rect(left, top, right, bottom)); in intersect()
|
D | ShadowDrawable.java | 6 import android.graphics.Rect; 30 private Rect bounds = new Rect(0, 0, 0, 0); 75 public final Rect getBounds() { in getBounds() 80 public void setBounds(Rect rect) { in setBounds() 86 bounds = new Rect(left, top, right, bottom); in setBounds() 90 public Rect copyBounds() { in copyBounds() 91 Rect bounds = new Rect(); in copyBounds() 97 public void copyBounds(Rect bounds) { in copyBounds()
|
/external/chromium/chrome/browser/ui/views/frame/ |
D | opaque_browser_frame_view.h | 34 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; 49 virtual gfx::Rect GetBoundsForReservedArea() const; 73 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 76 virtual gfx::Rect GetWindowBoundsForClientBounds( 77 const gfx::Rect& client_bounds) const OVERRIDE; 128 gfx::Rect IconBounds() const; 146 gfx::Rect CalculateClientAreaBounds(int width, int height) const; 149 gfx::Rect title_bounds_; 152 gfx::Rect otr_avatar_bounds_; 170 gfx::Rect client_view_bounds_;
|
D | popup_non_client_frame_view.cc | 15 gfx::Rect PopupNonClientFrameView::GetBoundsForClientView() const { in GetBoundsForClientView() 16 return gfx::Rect(0, 0, width(), height()); in GetBoundsForClientView() 27 gfx::Rect PopupNonClientFrameView::GetWindowBoundsForClientBounds( in GetWindowBoundsForClientBounds() 28 const gfx::Rect& client_bounds) const { in GetWindowBoundsForClientBounds() 49 gfx::Rect PopupNonClientFrameView::GetBoundsForTabStrip( in GetBoundsForTabStrip() 51 return gfx::Rect(0, 0, width(), tabstrip->GetPreferredSize().height()); in GetBoundsForTabStrip()
|
D | app_panel_browser_frame_view.h | 36 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; 43 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 46 virtual gfx::Rect GetWindowBoundsForClientBounds( 47 const gfx::Rect& client_bounds) const OVERRIDE; 88 gfx::Rect IconBounds() const; 103 gfx::Rect CalculateClientAreaBounds(int width, int height) const; 106 gfx::Rect title_bounds_; 121 gfx::Rect client_view_bounds_;
|
/external/chromium/chrome/browser/ui/views/notifications/ |
D | balloon_view.cc | 175 gfx::Rect contents_rect = GetContentsRectangle(); in SizeContentsWindow() 195 gfx::Rect(balloon_->GetPosition().x(), balloon_->GetPosition().y(), in RepositionToBalloon() 197 gfx::Rect contents_rect = GetContentsRectangle(); in RepositionToBalloon() 206 anim_frame_end_ = gfx::Rect( in RepositionToBalloon() 228 gfx::Rect frame_position( in AnimationProgressed() 240 gfx::Rect contents_rect = GetContentsRectangle(); in AnimationProgressed() 251 gfx::Rect BalloonViewImpl::GetCloseButtonBounds() const { in GetCloseButtonBounds() 252 return gfx::Rect( in GetCloseButtonBounds() 260 gfx::Rect BalloonViewImpl::GetOptionsButtonBounds() const { in GetOptionsButtonBounds() 261 gfx::Rect close_rect = GetCloseButtonBounds(); in GetOptionsButtonBounds() [all …]
|
D | balloon_view.h | 70 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 99 void GetContentsMask(const gfx::Rect& contents_rect, gfx::Path* path) const; 102 void GetFrameMask(const gfx::Rect&, gfx::Path* path) const; 120 gfx::Rect GetCloseButtonBounds() const; 121 gfx::Rect GetOptionsButtonBounds() const; 122 gfx::Rect GetLabelBounds() const; 129 gfx::Rect GetContentsRectangle() const; 159 gfx::Rect anim_frame_start_; 160 gfx::Rect anim_frame_end_;
|
/external/chromium/chrome/browser/ui/gtk/tabs/ |
D | tab_renderer_gtk.h | 162 virtual void SetBounds(const gfx::Rect& bounds); 208 gfx::Rect bounds() const { return bounds_; } in bounds() 210 gfx::Rect favicon_bounds() const { return favicon_bounds_; } in favicon_bounds() 213 gfx::Rect GetNonMirroredBounds(GtkWidget* parent) const; 216 gfx::Rect GetRequisition() const; 227 const gfx::Rect& title_bounds() const { return title_bounds_; } in title_bounds() 228 const gfx::Rect& close_button_bounds() const { return close_button_bounds_; } in close_button_bounds() 317 gfx::Rect GetLocalBounds(); 379 gfx::Rect favicon_bounds_; 380 gfx::Rect title_bounds_; [all …]
|
/external/chromium/chrome/browser/ui/views/ |
D | find_bar_host.cc | 110 void FindBarHost::MoveWindowIfNecessary(const gfx::Rect& selection_rect, in MoveWindowIfNecessary() 121 gfx::Rect new_pos = GetDialogPosition(selection_rect); in MoveWindowIfNecessary() 209 gfx::Rect window_rect = host()->GetWindowScreenBounds(); 232 gfx::Rect FindBarHost::GetDialogPosition(gfx::Rect avoid_overlapping_rect) { 234 gfx::Rect widget_bounds; 237 return gfx::Rect(); 244 gfx::Rect view_location; 261 gfx::Rect new_pos = FindBarController::GetLocationForFindbarView( 272 void FindBarHost::SetDialogPosition(const gfx::Rect& new_pos, bool no_redraw) { 284 void FindBarHost::GetWidgetBounds(gfx::Rect* bounds) {
|
/external/zxing/qr_scanner/src/com/google/zxing/client/android/camera/ |
D | CameraManager.java | 24 import android.graphics.Rect; 52 private Rect framingRect; 53 private Rect framingRectInPreview; 179 public Rect getFramingRect() { in getFramingRect() 199 framingRect = new Rect(leftOffset, topOffset, leftOffset + width, topOffset + height); in getFramingRect() 209 public Rect getFramingRectInPreview() { in getFramingRectInPreview() 211 Rect framingRect = getFramingRect(); in getFramingRectInPreview() 215 Rect rect = new Rect(framingRect); in getFramingRectInPreview() 248 framingRect = new Rect(leftOffset, topOffset, leftOffset + width, topOffset + height); in setManualFramingRect() 267 Rect rect = getFramingRectInPreview(); in buildLuminanceSource()
|
/external/chromium/webkit/glue/media/ |
D | video_renderer_impl.h | 32 virtual void SetRect(const gfx::Rect& rect); 33 virtual void Paint(SkCanvas* canvas, const gfx::Rect& dest_rect); 50 bool CanFastPaint(SkCanvas* canvas, const gfx::Rect& dest_rect); 55 const gfx::Rect& dest_rect); 62 const gfx::Rect& dest_rect); 64 void TransformToSkIRect(const SkMatrix& matrix, const gfx::Rect& src_rect,
|
/external/chromium/chrome/browser/ui/window_snapshot/ |
D | window_snapshot_x.cc | 27 gfx::Rect GrabWindowSnapshot(gfx::NativeWindow gtk_window, in GrabWindowSnapshot() 35 return gfx::Rect(); in GrabWindowSnapshot() 41 return gfx::Rect(); in GrabWindowSnapshot() 45 return gfx::Rect(); in GrabWindowSnapshot() 57 return gfx::Rect(); in GrabWindowSnapshot() 63 return gfx::Rect(image->width, image->height); in GrabWindowSnapshot()
|
/external/chromium/chrome/browser/renderer_host/ |
D | render_widget_host_view_gtk.h | 57 const gfx::Rect& pos); 63 virtual void SetBounds(const gfx::Rect& rect); 73 virtual gfx::Rect GetViewBounds() const; 77 const gfx::Rect& caret_rect); 80 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, 81 const std::vector<gfx::Rect>& copy_rects); 111 void Paint(const gfx::Rect&); 155 void DoPopupOrFullscreenInit(GtkWindow* window, const gfx::Rect& bounds); 174 gfx::Rect invalid_rect_;
|