/external/chromium_org/ash/wm/panels/ |
H A D | panel_window_resizer.cc | 84 gfx::Rect bounds(CalculateBoundsForDrag(location)); 87 AttachToLauncher(bounds, &offset); 130 bool PanelWindowResizer::AttachToLauncher(const gfx::Rect& bounds, argument 142 if (bounds.bottom() >= (launcher_bounds.y() - 145 offset->set_y(launcher_bounds.y() - bounds.height() - bounds.y()); 149 if (bounds.x() <= (launcher_bounds.right() + 152 offset->set_x(launcher_bounds.right() - bounds.x()); 156 if (bounds.right() >= (launcher_bounds.x() - 159 offset->set_x(launcher_bounds.x() - bounds [all...] |
/external/chromium_org/ash/wm/ |
H A D | toplevel_window_event_handler_unittest.cc | 102 gfx::Size size = w1->bounds().size(); 105 EXPECT_EQ("100,100", w1->bounds().origin().ToString()); 107 EXPECT_EQ(size.ToString(), w1->bounds().size().ToString()); 111 EXPECT_EQ("200,200", w1->bounds().origin().ToString()); 113 EXPECT_EQ(size.ToString(), w1->bounds().size().ToString()); 118 gfx::Point position = w1->bounds().origin(); 121 EXPECT_EQ(position.ToString(), w1->bounds().origin().ToString()); 123 EXPECT_EQ(gfx::Size(200, 200).ToString(), w1->bounds().size().ToString()); 132 gfx::Point position = w1->bounds().origin(); 137 EXPECT_EQ(position.ToString(), w1->bounds() 221 gfx::Rect bounds = w1->bounds(); local 600 gfx::Rect bounds = notmoved->bounds(); local [all...] |
/external/chromium_org/ash/wm/workspace/ |
H A D | magnetism_matcher.h | 37 MagnetismEdgeMatcher(const gfx::Rect& bounds, MagnetismEdge edge); 41 const gfx::Rect& bounds() const { return bounds_; } function in class:ash::MagnetismEdgeMatcher 47 // Returns true if should attach to the specified bounds. 48 bool ShouldAttach(const gfx::Rect& bounds); 57 static int GetPrimaryCoordinate(const gfx::Rect& bounds, MagnetismEdge edge) { argument 60 return bounds.y(); 62 return bounds.x(); 64 return bounds.bottom(); 66 return bounds.right(); 87 Range GetPrimaryRange(const gfx::Rect& bounds) cons [all...] |
H A D | workspace_event_handler_unittest.cc | 39 const gfx::Rect& bounds) { 44 window->SetBounds(bounds); 214 // to the restored bounds would be weird). 252 EXPECT_EQ(restored_bounds.y(), window->bounds().y()); 253 EXPECT_EQ(restored_bounds.height(), window->bounds().height()); 276 EXPECT_EQ(restored_bounds.x(), window->bounds().x()); 277 EXPECT_EQ(restored_bounds.width(), window->bounds().width()); 299 EXPECT_EQ("10,20 30x40", window->bounds().ToString()); 305 EXPECT_EQ("10,20 30x40", window->bounds().ToString()); 317 gfx::Rect restore_bounds = window->bounds(); 38 CreateTestWindow(aura::WindowDelegate* delegate, const gfx::Rect& bounds) argument [all...] |
/external/chromium_org/athena/screen/ |
H A D | screen_manager_unittest.cc | 31 const gfx::Rect& bounds) { 37 window->SetBounds(bounds); 29 CreateWindow(aura::Window* container, aura::WindowDelegate* delegate, const gfx::Rect& bounds) argument
|
/external/chromium_org/cc/base/ |
H A D | simple_enclosed_region.h | 75 gfx::Rect bounds() const { return rect_; } function in class:cc::SimpleEnclosedRegion
|
/external/chromium_org/chrome/browser/chromeos/ui/ |
H A D | accessibility_focus_ring_layer.cc | 98 gfx::Rect bounds = ring.GetBounds(); local 100 bounds.Inset(-inset, -inset, -inset, -inset); 103 gfx::Screen::GetNativeScreen()->GetDisplayMatching(bounds); 108 // Update the layer bounds. 109 layer()->SetBounds(bounds); 113 gfx::Vector2d offset = layer()->bounds().OffsetFromOrigin();
|
/external/chromium_org/chrome/browser/devtools/ |
H A D | devtools_window_testing.cc | 79 void DevToolsWindowTesting::SetInspectedPageBounds(const gfx::Rect& bounds) { argument 80 devtools_window_->SetInspectedPageBounds(bounds);
|
/external/chromium_org/chrome/browser/ui/ |
H A D | browser_window_state.cc | 116 const gfx::Rect& bounds, 125 session_service->SetWindowBounds(browser->session_id(), bounds, show_state); 129 gfx::Rect* bounds, 132 DCHECK(bounds); 134 *bounds = browser->override_bounds(); 136 *bounds, 138 bounds, 150 *bounds = gfx::Rect(0, 0, 800, 600); 159 bounds->set_size(gfx::Size(width, height)); 166 bounds 115 SaveWindowPlacement(const Browser* browser, const gfx::Rect& bounds, ui::WindowShowState show_state) argument 128 GetSavedWindowBoundsAndShowState(const Browser* browser, gfx::Rect* bounds, ui::WindowShowState* show_state) argument [all...] |
/external/chromium_org/chrome/browser/ui/views/autofill/ |
H A D | decorated_textfield.cc | 117 gfx::Rect bounds = GetContentsBounds(); local 120 bounds.x() - icon_size.width() - kTextfieldIconPadding : 121 bounds.right() + kTextfieldIconPadding; 123 int y = bounds.y() + (bounds.height() - icon_size.height()) / 2;
|
H A D | new_credit_card_bubble_views.cc | 108 gfx::Rect bounds = views::BubbleDelegateView::GetBubbleBounds(); local 110 return bounds; 126 x -= bounds.width() + kAnchorlessEndPadding; 130 int width = bounds.width() - border_insets.width(); 131 int height = bounds.height() - border_insets.height();
|
H A D | tooltip_icon.cc | 42 gfx::Rect bounds = views::BubbleDelegateView::GetAnchorRect(); variable 43 bounds.Inset(GetPreferredInsets(anchor())); 44 return bounds;
|
/external/chromium_org/chrome/browser/ui/views/ |
H A D | detachable_toolbar_view.cc | 29 const gfx::Rect& bounds, 32 canvas->FillRect(bounds, 35 background_origin.x(), background_origin.y(), bounds.x(), 36 bounds.y(), bounds.width(), bounds.height()); 43 bounds.x(), bounds.y(), 44 toolbar_left->width(), bounds.height()); 48 bounds 26 PaintBackgroundAttachedMode( gfx::Canvas* canvas, ui::ThemeProvider* theme_provider, const gfx::Rect& bounds, const gfx::Point& background_origin, chrome::HostDesktopType host_desktop_type) argument [all...] |
H A D | dropdown_bar_host.cc | 208 void DropdownBarHost::GetWidgetBounds(gfx::Rect* bounds) { argument 209 DCHECK(bounds); 210 *bounds = browser_view_->bounds();
|
/external/chromium_org/chrome/browser/ui/views/panels/ |
H A D | panel_view.h | 39 PanelView(Panel* panel, const gfx::Rect& bounds, bool always_on_top); 46 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; 47 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) OVERRIDE; 105 // PanelStackView might want to update the stored bounds directly since it 106 // has already taken care of updating the window bounds directly. 107 void set_cached_bounds_directly(const gfx::Rect& bounds) { bounds_ = bounds; } argument 163 void SetBoundsInternal(const gfx::Rect& bounds, bool animate); 166 // Sets the bounds of the underlying window to |new_bounds|. Note that this 229 // Used to animate the bounds chang [all...] |
/external/chromium_org/chrome/browser/ui/views/profiles/ |
H A D | user_manager_view.cc | 122 // browser, bounds will remain empty and the user manager will be centered on 124 gfx::Rect bounds; local 136 bounds = gfx::Screen::GetScreenFor(native_view)-> 138 bounds.ClampToCenteredSize(gfx::Size(UserManager::kWindowWidth, 144 DialogDelegate::CreateDialogWidgetWithBounds(this, NULL, NULL, bounds);
|
/external/chromium_org/chrome/browser/ui/window_sizer/ |
H A D | window_sizer_ash_unittest.cc | 59 return native_window_->bounds(); 83 const gfx::Rect& bounds, 85 if (!bounds.IsEmpty()) 86 window->SetBounds(bounds); 104 // where the default window bounds calculation is invoked. 221 // bounds of an existing window of the same type. 570 gfx::Rect(), // The (persisted) bounds. 576 gfx::Rect(), // Don't request valid bounds. 587 gfx::Rect(50, 100, 300, 150), // The (persisted) bounds. 593 gfx::Rect(), // Don't request valid bounds 81 CreateTestBrowserWindow( aura::Window* window, const gfx::Rect& bounds, const Browser::CreateParams& params) argument 930 gfx::Rect bounds; local 932 std::string(), specified_bounds, browser.get(), &bounds, &show_state); local 942 std::string(), specified_bounds, browser.get(), &bounds, &show_state); local 960 gfx::Rect bounds; local 966 &bounds, local 974 gfx::Rect bounds; local 980 &bounds, local [all...] |
/external/chromium_org/chrome/common/ |
H A D | badge_util.cc | 98 const gfx::Rect& bounds, 152 int rect_y = bounds.bottom() - bottom_margin - kBadgeHeight; 155 bounds.x() + (bounds.width() - badge_width) / 2 : 156 bounds.right() - badge_width; 97 PaintBadge(gfx::Canvas* canvas, const gfx::Rect& bounds, const std::string& text, const SkColor& text_color_in, const SkColor& background_color_in, int icon_width, extensions::ActionInfo::Type action_type) argument
|
/external/chromium_org/components/password_manager/core/browser/ |
H A D | password_autofill_manager.cc | 69 const gfx::RectF& bounds, 87 autofill_client_->ShowAutofillPopup(bounds, 67 OnShowPasswordSuggestions( const autofill::FormFieldData& field, const gfx::RectF& bounds, const std::vector<base::string16>& suggestions, const std::vector<base::string16>& realms) argument
|
/external/chromium_org/content/browser/renderer_host/ |
H A D | render_view_host_delegate_view.h | 73 const gfx::Rect& bounds, 72 ShowPopupMenu(RenderFrameHost* render_frame_host, const gfx::Rect& bounds, int item_height, double item_font_size, int selected_item, const std::vector<MenuItem>& items, bool right_aligned, bool allow_multiple_selection) argument
|
/external/chromium_org/content/browser/web_contents/ |
H A D | touch_editable_impl_aura_browsertest.cc | 175 gfx::Rect bounds = content->GetBoundsInRootWindow(); local 182 generator.GestureTapAt(gfx::Point(bounds.x() + 10, bounds.y() + 10)); 410 gfx::Rect bounds = content->GetBoundsInRootWindow(); local 418 generator.GestureTapAt(gfx::Point(bounds.x() + 50, bounds.y() + 40));
|
/external/chromium_org/mojo/services/native_viewport/ |
H A D | platform_viewport_android.cc | 100 void PlatformViewportAndroid::Init(const gfx::Rect& bounds) { argument 127 void PlatformViewportAndroid::SetBounds(const gfx::Rect& bounds) { argument
|
/external/chromium_org/mojo/services/view_manager/ |
H A D | display_manager.cc | 21 gfx::Rect ConvertRectToRoot(const ServerView* view, const gfx::Rect& bounds) { argument 22 gfx::Point origin(bounds.origin()); 24 origin += view->bounds().OffsetFromOrigin(); 29 return gfx::Rect(origin, bounds.size()); 36 gfx::Rect node_bounds = view->bounds() + offset; 41 DrawViewTree(pass, *it, offset + view->bounds().OffsetFromOrigin()); 95 const gfx::Rect& bounds) { 98 gfx::Rect root_relative_rect = ConvertRectToRoot(view, bounds); 148 void DisplayManager::OnBoundsChanged(SizePtr bounds) { argument 149 bounds_ = bounds 94 SchedulePaint(const ServerView* view, const gfx::Rect& bounds) argument [all...] |
H A D | server_view.cc | 78 void ServerView::SetBounds(const gfx::Rect& bounds) { argument 79 if (bounds_ == bounds) 83 bounds_ = bounds; 84 delegate_->OnViewBoundsChanged(this, old_bounds, bounds);
|
H A D | test_change_tracker.h | 58 gfx::Rect bounds; member in struct:mojo::service::Change
|