Home
last modified time | relevance | path

Searched refs:mouse_location (Results 1 – 24 of 24) sorted by relevance

/external/chromium_org/chrome/browser/ui/panels/
Dpanel_resize_browsertest.cc37 gfx::Point mouse_location; in ResizePanel() local
40 mouse_location = bounds.origin(); in ResizePanel()
43 mouse_location.SetPoint(bounds.x() + bounds.width() / 2, bounds.y()); in ResizePanel()
46 mouse_location.SetPoint(bounds.right(), bounds.y()); in ResizePanel()
49 mouse_location.SetPoint(bounds.x(), bounds.y() + bounds.height() / 2); in ResizePanel()
52 mouse_location.SetPoint(bounds.right(), in ResizePanel()
56 mouse_location.SetPoint(bounds.x(), bounds.bottom()); in ResizePanel()
59 mouse_location.SetPoint(bounds.x() + bounds.width() / 2, in ResizePanel()
63 mouse_location.SetPoint(bounds.right(), bounds.bottom()); in ResizePanel()
69 panel_manager->StartResizingByMouse(panel, mouse_location, component); in ResizePanel()
[all …]
Dpanel_drag_browsertest.cc42 gfx::Point mouse_location(panel->GetBounds().origin()); in DragPanelByDelta() local
43 panel_testing->PressLeftMouseButtonTitlebar(mouse_location); in DragPanelByDelta()
44 panel_testing->DragTitlebar(mouse_location + delta); in DragPanelByDelta()
53 gfx::Point mouse_location(panel->GetBounds().origin()); in DragPanelToMouseLocation() local
200 gfx::Point mouse_location = panel_old_bounds.origin(); in IN_PROC_BROWSER_TEST_F() local
201 panel_testing->PressLeftMouseButtonTitlebar(mouse_location); in IN_PROC_BROWSER_TEST_F()
204 mouse_location.Offset(-big_delta_x, 0); in IN_PROC_BROWSER_TEST_F()
205 panel_testing->DragTitlebar(mouse_location); in IN_PROC_BROWSER_TEST_F()
214 mouse_location = panel_old_bounds.origin(); in IN_PROC_BROWSER_TEST_F()
215 panel_testing->PressLeftMouseButtonTitlebar(mouse_location); in IN_PROC_BROWSER_TEST_F()
[all …]
Dpanel_resize_controller.cc45 const gfx::Point& mouse_location, in StartResizing() argument
87 mouse_location_at_start_ = mouse_location; in StartResizing()
94 void PanelResizeController::Resize(const gfx::Point& mouse_location) { in Resize() argument
105 mouse_location.x() - mouse_location_at_start_.x(), 0)); in Resize()
109 mouse_location.y() - mouse_location_at_start_.y(), 0)); in Resize()
113 mouse_location_at_start_.x() - mouse_location.x(), 0)); in Resize()
117 mouse_location_at_start_.y() - mouse_location.y(), 0); in Resize()
126 if (display_area.y() <= mouse_location.y() && in Resize()
127 mouse_location.y() < work_area.y()) { in Resize()
Dnative_panel.h107 void PressLeftMouseButtonTitlebar(const gfx::Point& mouse_location) { in PressLeftMouseButtonTitlebar() argument
108 PressLeftMouseButtonTitlebar(mouse_location, panel::NO_MODIFIER); in PressLeftMouseButtonTitlebar()
116 const gfx::Point& mouse_location, panel::ClickModifier modifier) = 0;
118 virtual void DragTitlebar(const gfx::Point& mouse_location) = 0;
Dpanel_drag_controller.h29 void StartDragging(Panel* panel, const gfx::Point& mouse_location);
30 void Drag(const gfx::Point& mouse_location);
60 const gfx::Point& mouse_location) const;
Dpanel_manager.h94 void StartDragging(Panel* panel, const gfx::Point& mouse_location);
95 void Drag(const gfx::Point& mouse_location);
100 void StartResizingByMouse(Panel* panel, const gfx::Point& mouse_location,
102 void ResizeByMouse(const gfx::Point& mouse_location);
Dpanel_resize_controller.h28 const gfx::Point& mouse_location,
30 void Resize(const gfx::Point& mouse_location);
Dpanel_manager.cc446 const gfx::Point& mouse_location) { in StartDragging() argument
447 drag_controller_->StartDragging(panel, mouse_location); in StartDragging()
450 void PanelManager::Drag(const gfx::Point& mouse_location) { in Drag() argument
451 drag_controller_->Drag(mouse_location); in Drag()
459 const gfx::Point& mouse_location, in StartResizingByMouse() argument
463 resize_controller_->StartResizing(panel, mouse_location, component); in StartResizingByMouse()
467 void PanelManager::ResizeByMouse(const gfx::Point& mouse_location) { in ResizeByMouse() argument
469 resize_controller_->Resize(mouse_location); in ResizeByMouse()
Dpanel_drag_controller.cc141 const gfx::Point& mouse_location) { in StartDragging() argument
145 mouse_location - panel->GetBounds().origin(); in StartDragging()
156 void PanelDragController::Drag(const gfx::Point& mouse_location) { in Drag() argument
160 gfx::Point target_position = GetPanelPositionForMouseLocation(mouse_location); in Drag()
277 const gfx::Point& mouse_location) const { in GetPanelPositionForMouseLocation()
281 mouse_location - offset_from_mouse_location_on_drag_start_; in GetPanelPositionForMouseLocation()
290 if (display_area.Contains(mouse_location) && in GetPanelPositionForMouseLocation()
Dstacked_panel_browsertest.cc528 gfx::Point mouse_location(panel2->GetBounds().origin()); in IN_PROC_BROWSER_TEST_F() local
529 panel2_testing->PressLeftMouseButtonTitlebar(mouse_location); in IN_PROC_BROWSER_TEST_F()
531 panel2_testing->DragTitlebar(mouse_location + drag_delta_to_unstack); in IN_PROC_BROWSER_TEST_F()
551 mouse_location = bounds1.origin(); in IN_PROC_BROWSER_TEST_F()
552 panel1_testing->PressLeftMouseButtonTitlebar(mouse_location); in IN_PROC_BROWSER_TEST_F()
555 panel1_testing->DragTitlebar(mouse_location + drag_delta_to_stack); in IN_PROC_BROWSER_TEST_F()
645 gfx::Point mouse_location(panel2->GetBounds().origin()); in IN_PROC_BROWSER_TEST_F() local
646 panel2_testing->PressLeftMouseButtonTitlebar(mouse_location); in IN_PROC_BROWSER_TEST_F()
648 panel2_testing->DragTitlebar(mouse_location + drag_delta); in IN_PROC_BROWSER_TEST_F()
668 mouse_location = panel3->GetBounds().origin(); in IN_PROC_BROWSER_TEST_F()
[all …]
Dpanel_browsertest.cc515 gfx::Point mouse_location(panel->GetBounds().origin()); in IN_PROC_BROWSER_TEST_F() local
516 panel_testing->PressLeftMouseButtonTitlebar(mouse_location); in IN_PROC_BROWSER_TEST_F()
517 panel_testing->DragTitlebar(mouse_location + gfx::Vector2d(-100, 5)); in IN_PROC_BROWSER_TEST_F()
1580 gfx::Point mouse_location = panel->GetBounds().origin(); in IN_PROC_BROWSER_TEST_F() local
1582 mouse_location, in IN_PROC_BROWSER_TEST_F()
1584 mouse_location.Offset(panel->GetBounds().width() - bigger_size.width(), in IN_PROC_BROWSER_TEST_F()
1586 panel_manager->ResizeByMouse(mouse_location); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/ui/compositor/
Ddebug_utils.cc30 gfx::Point mouse_location, in PrintLayerHierarchyImp() argument
34 layer->transform().TransformPointReverse(&mouse_location); in PrintLayerHierarchyImp()
35 bool mouse_inside_layer_bounds = layer->bounds().Contains(mouse_location); in PrintLayerHierarchyImp()
36 mouse_location.Offset(-layer->bounds().x(), -layer->bounds().y()); in PrintLayerHierarchyImp()
93 layer->children()[i], indent + 3, mouse_location, out); in PrintLayerHierarchyImp()
99 void PrintLayerHierarchy(const Layer* layer, gfx::Point mouse_location) { in PrintLayerHierarchy() argument
102 PrintLayerHierarchyImp(layer, 0, mouse_location, &out); in PrintLayerHierarchy()
Ddebug_utils.h20 gfx::Point mouse_location);
/external/chromium_org/chrome/browser/ui/views/panels/
Dpanel_view.cc107 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE;
110 virtual void DragTitlebar(const gfx::Point& mouse_location) OVERRIDE;
133 const gfx::Point& mouse_location, panel::ClickModifier modifier) { in PressLeftMouseButtonTitlebar() argument
134 panel_view_->OnTitlebarMousePressed(mouse_location); in PressLeftMouseButtonTitlebar()
142 void NativePanelTestingWin::DragTitlebar(const gfx::Point& mouse_location) { in DragTitlebar() argument
143 panel_view_->OnTitlebarMouseDragged(mouse_location); in DragTitlebar()
1036 bool PanelView::OnTitlebarMousePressed(const gfx::Point& mouse_location) { in OnTitlebarMousePressed() argument
1039 last_mouse_location_ = mouse_location; in OnTitlebarMousePressed()
1043 bool PanelView::OnTitlebarMouseDragged(const gfx::Point& mouse_location) { in OnTitlebarMouseDragged() argument
1048 ExceededDragThreshold(mouse_location - last_mouse_location_)) { in OnTitlebarMouseDragged()
[all …]
Dpanel_frame_view.cc564 gfx::Point mouse_location = event.location(); in OnMousePressed() local
565 views::View::ConvertPointToScreen(this, &mouse_location); in OnMousePressed()
569 if (!panel_view_->IsWithinResizingArea(mouse_location) && in OnMousePressed()
570 panel_view_->OnTitlebarMousePressed(mouse_location)) in OnMousePressed()
582 gfx::Point mouse_location = screen->GetCursorScreenPoint(); in OnMouseDragged() local
586 gfx::Point mouse_location = event.location(); in OnMouseDragged()
587 views::View::ConvertPointToScreen(this, &mouse_location); in OnMouseDragged()
590 if (panel_view_->OnTitlebarMouseDragged(mouse_location)) in OnMouseDragged()
Dpanel_view.h91 bool OnTitlebarMousePressed(const gfx::Point& mouse_location);
92 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location);
103 bool IsWithinResizingArea(const gfx::Point& mouse_location) const;
/external/chromium_org/ash/autoclick/
Dautoclick_controller.cc130 gfx::Point mouse_location = event->root_location(); in OnMouseEvent() local
132 wm::GetRootWindowAt(mouse_location), in OnMouseEvent()
133 &mouse_location); in OnMouseEvent()
141 gfx::Vector2d delta = mouse_location - anchor_location_; in OnMouseEvent()
/external/chromium_org/chrome/browser/ui/cocoa/panels/
Dpanel_cocoa.mm330 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE;
333 virtual void DragTitlebar(const gfx::Point& mouse_location) OVERRIDE;
367 const gfx::Point& mouse_location, panel::ClickModifier modifier) {
374 cocoa_utils::ConvertPointToCocoaCoordinates(mouse_location)
385 void CocoaNativePanelTesting::DragTitlebar(const gfx::Point& mouse_location) {
390 cocoa_utils::ConvertPointToCocoaCoordinates(mouse_location)];
/external/chromium_org/ash/wm/workspace/
Dmulti_window_resize_controller.cc229 gfx::Point mouse_location( in DetermineWindowsFromScreenPoint() local
231 wm::ConvertPointFromScreen(window, &mouse_location); in DetermineWindowsFromScreenPoint()
233 window->delegate()->GetNonClientComponent(mouse_location); in DetermineWindowsFromScreenPoint()
234 return DetermineWindows(window, component, mouse_location); in DetermineWindowsFromScreenPoint()
/external/chromium_org/ui/aura/
Dwindow_event_dispatcher_unittest.cc462 gfx::Point mouse_location(int i) const { return mouse_locations_[i]; } in mouse_location() function in aura::__anona07948460311::EventFilterRecorder
719 EXPECT_EQ(gfx::Point(13, 13), recorder.mouse_location(0)); in TEST_F()
1021 gfx::Point mouse_location(gfx::Point(15, 25)); in TEST_F() local
1022 ui::MouseEvent mouse1(ui::ET_MOUSE_MOVED, mouse_location, in TEST_F()
1023 mouse_location, 0, 0); in TEST_F()
1036 int translated_x = mouse_location.x() - window_origin.x(); in TEST_F()
1037 int translated_y = mouse_location.y() - window_origin.y(); in TEST_F()
1039 EXPECT_EQ(recorder.mouse_location(0).ToString(), translated_point.ToString()); in TEST_F()
1058 gfx::Point mouse_location(gfx::Point(15, 25)); in TEST_F() local
1059 ui::MouseEvent mouse1(ui::ET_MOUSE_MOVED, mouse_location, in TEST_F()
[all …]
/external/chromium_org/ui/views/corewm/
Dtooltip_controller.h55 const gfx::Point& mouse_location() const { return curr_mouse_loc_; } in mouse_location() function
/external/chromium_org/ui/views/controls/menu/
Dmenu_controller.h298 bool ShowSiblingMenu(SubmenuView* source, const gfx::Point& mouse_location);
491 const gfx::Point& mouse_location);
Dmenu_controller.cc1167 const gfx::Point& mouse_location) { in ShowSiblingMenu() argument
1172 if (mouse_location.x() >= 0 && in ShowSiblingMenu()
1173 mouse_location.x() < source_view->width() && in ShowSiblingMenu()
1174 mouse_location.y() >= 0 && in ShowSiblingMenu()
1175 mouse_location.y() < source_view->height()) { in ShowSiblingMenu()
1187 gfx::Point screen_point(mouse_location); in ShowSiblingMenu()
2263 const gfx::Point& mouse_location) { in HandleMouseLocation() argument
2271 MenuPart part = GetMenuPart(source, mouse_location); in HandleMouseLocation()
2278 if (part.type == MenuPart::NONE && ShowSiblingMenu(source, mouse_location)) in HandleMouseLocation()
/external/chromium_org/ui/views/win/
Dhwnd_message_handler.cc2420 POINT mouse_location = CR_POINT_INITIALIZER_FROM_LPARAM(l_param); in IsSynthesizedMouseMessage() local
2421 ::ClientToScreen(hwnd(), &mouse_location); in IsSynthesizedMouseMessage()
2424 if (memcmp(&cursor_pos, &mouse_location, sizeof(POINT))) in IsSynthesizedMouseMessage()