Home
last modified time | relevance | path

Searched refs:SnapSizer (Results 1 – 18 of 18) sorted by relevance

/external/chromium_org/ash/wm/workspace/
Dsnap_sizer_unittest.cc23 using internal::SnapSizer;
40 SnapSizer::SnapWindow(window_state, SnapSizer::LEFT_EDGE); in TEST_F()
48 SnapSizer::SnapWindow(window_state, SnapSizer::RIGHT_EDGE); in TEST_F()
58 SnapSizer::SnapWindow(window_state, SnapSizer::RIGHT_EDGE); in TEST_F()
66 SnapSizer::SnapWindow(window_state, SnapSizer::LEFT_EDGE); in TEST_F()
91 SnapSizer::SnapWindow(window_state, SnapSizer::RIGHT_EDGE); in TEST_F()
126 SnapSizer::SnapWindow(window_state, SnapSizer::LEFT_EDGE); in TEST_F()
133 SnapSizer::SnapWindow(window_state, SnapSizer::LEFT_EDGE); in TEST_F()
137 SnapSizer::SnapWindow(window_state, SnapSizer::LEFT_EDGE); in TEST_F()
141 SnapSizer::SnapWindow(window_state, SnapSizer::LEFT_EDGE); in TEST_F()
[all …]
Dsnap_sizer.cc126 SnapSizer::Edge edge, in SnapWindowToBounds()
128 if (edge == SnapSizer::LEFT_EDGE) { in SnapWindowToBounds()
137 SnapSizer::SnapSizer(wm::WindowState* window_state, in SnapSizer() function in ash::internal::SnapSizer
157 SnapSizer::~SnapSizer() { in ~SnapSizer()
160 void SnapSizer::SnapWindow(wm::WindowState* window_state, in SnapWindow()
161 SnapSizer::Edge edge) { in SnapWindow()
164 internal::SnapSizer sizer(window_state, gfx::Point(), edge, in SnapWindow()
165 internal::SnapSizer::OTHER_INPUT); in SnapWindow()
170 void SnapSizer::SnapWindowToTargetBounds() { in SnapWindowToTargetBounds()
174 void SnapSizer::Update(const gfx::Point& location) { in Update()
[all …]
Dsnap_sizer.h25 class ASH_EXPORT SnapSizer {
40 SnapSizer(wm::WindowState* window_state,
44 virtual ~SnapSizer();
134 DISALLOW_COPY_AND_ASSIGN(SnapSizer);
Dworkspace_window_resizer.h28 class SnapSizer; variable
197 scoped_ptr<SnapSizer> snap_sizer_;
Dworkspace_window_resizer.cc937 SnapSizer::Edge edge = (snap_type_ == SNAP_LEFT) ? in UpdateSnapPhantomWindow()
938 SnapSizer::LEFT_EDGE : SnapSizer::RIGHT_EDGE; in UpdateSnapPhantomWindow()
940 snap_sizer_.reset(new SnapSizer(window_state(), in UpdateSnapPhantomWindow()
943 internal::SnapSizer::OTHER_INPUT)); in UpdateSnapPhantomWindow()
Dworkspace_window_resizer_unittest.cc611 internal::SnapSizer snap_sizer(window_state, gfx::Point(), in TEST_F()
612 internal::SnapSizer::LEFT_EDGE, internal::SnapSizer::OTHER_INPUT); in TEST_F()
628 internal::SnapSizer snap_sizer(window_state, gfx::Point(), in TEST_F()
629 internal::SnapSizer::RIGHT_EDGE, internal::SnapSizer::OTHER_INPUT); in TEST_F()
/external/chromium_org/ash/wm/caption_buttons/
Dalternate_frame_size_button_unittest.cc87 bool IsSnapped(internal::SnapSizer::Edge edge) const { in IsSnapped()
89 if (edge == internal::SnapSizer::LEFT_EDGE) in IsSnapped()
214 EXPECT_TRUE(IsSnapped(internal::SnapSizer::RIGHT_EDGE)); in TEST_F()
222 EXPECT_TRUE(IsSnapped(internal::SnapSizer::LEFT_EDGE)); in TEST_F()
232 EXPECT_TRUE(IsSnapped(internal::SnapSizer::RIGHT_EDGE)); in TEST_F()
241 EXPECT_TRUE(IsSnapped(internal::SnapSizer::LEFT_EDGE)); in TEST_F()
251 EXPECT_TRUE(IsSnapped(internal::SnapSizer::RIGHT_EDGE)); in TEST_F()
256 EXPECT_TRUE(IsSnapped(internal::SnapSizer::LEFT_EDGE)); in TEST_F()
276 EXPECT_TRUE(IsSnapped(internal::SnapSizer::LEFT_EDGE)); in TEST_F()
325 EXPECT_TRUE(IsSnapped(internal::SnapSizer::LEFT_EDGE)); in TEST_F()
[all …]
Dframe_maximize_button.cc29 using ash::internal::SnapSizer;
165 scoped_ptr<SnapSizer> snap_sizer(snap_sizer_.release()); in ExecuteSnapAndCloseMenu()
385 scoped_ptr<SnapSizer> snap_sizer(snap_sizer_.release()); in ProcessEndEvent()
446 SnapSizer::Edge snap_edge = snap_type_ == SNAP_LEFT ? in UpdateSnap()
447 SnapSizer::LEFT_EDGE : SnapSizer::RIGHT_EDGE; in UpdateSnap()
448 SnapSizer::InputType input_type = in UpdateSnap()
449 is_touch ? SnapSizer::TOUCH_MAXIMIZE_BUTTON_INPUT : in UpdateSnap()
450 SnapSizer::OTHER_INPUT; in UpdateSnap()
451 snap_sizer_.reset(new SnapSizer( in UpdateSnap()
488 const SnapSizer& snap_sizer) const { in ScreenBoundsForType()
[all …]
Dframe_maximize_button.h27 class SnapSizer; variable
137 const internal::SnapSizer& snap_sizer) const;
144 void Snap(internal::SnapSizer* snap_sizer);
175 scoped_ptr<internal::SnapSizer> snap_sizer_;
Dalternate_frame_size_button.cc188 using internal::SnapSizer; in CommitSnap()
189 SnapSizer::SnapWindow(ash::wm::GetWindowState(frame_->GetNativeWindow()), in CommitSnap()
191 SnapSizer::LEFT_EDGE : SnapSizer::RIGHT_EDGE); in CommitSnap()
Dframe_maximize_button_unittest.cc228 internal::SnapSizer sizer(window_state, center, in TEST_F()
229 internal::SnapSizer::RIGHT_EDGE, in TEST_F()
230 internal::SnapSizer::OTHER_INPUT); in TEST_F()
245 internal::SnapSizer sizer(window_state, center, in TEST_F()
246 internal::SnapSizer::LEFT_EDGE, in TEST_F()
247 internal::SnapSizer::OTHER_INPUT); in TEST_F()
296 internal::SnapSizer sizer(window_state, center, in TEST_F()
297 internal::SnapSizer::LEFT_EDGE, in TEST_F()
298 internal::SnapSizer::OTHER_INPUT); in TEST_F()
513 internal::SnapSizer sizer(window_state, button_pos, in TEST_F()
[all …]
/external/chromium_org/ash/wm/gestures/
Dsystem_pinch_handler.cc89 internal::SnapSizer::SnapWindow(window_state, in ProcessGestureEvent()
90 event.details().swipe_left() ? internal::SnapSizer::LEFT_EDGE : in ProcessGestureEvent()
91 internal::SnapSizer::RIGHT_EDGE); in ProcessGestureEvent()
Dtwo_finger_drag_handler.cc165 internal::SnapSizer::SnapWindow(window_state, in ProcessGestureEvent()
166 event.details().swipe_left() ? internal::SnapSizer::LEFT_EDGE : in ProcessGestureEvent()
167 internal::SnapSizer::RIGHT_EDGE); in ProcessGestureEvent()
/external/chromium_org/ash/wm/
Dtoplevel_window_event_handler_unittest.cc392 internal::SnapSizer sizer(window_state, location, in TEST_F()
393 internal::SnapSizer::RIGHT_EDGE, in TEST_F()
394 internal::SnapSizer::OTHER_INPUT); in TEST_F()
413 internal::SnapSizer sizer(window_state, location, in TEST_F()
414 internal::SnapSizer::LEFT_EDGE, in TEST_F()
415 internal::SnapSizer::OTHER_INPUT); in TEST_F()
534 internal::SnapSizer sizer(window_state, location, in TEST_F()
535 internal::SnapSizer::RIGHT_EDGE, in TEST_F()
536 internal::SnapSizer::OTHER_INPUT); in TEST_F()
559 internal::SnapSizer sizer(window_state, location, in TEST_F()
[all …]
Dsystem_gesture_event_filter_unittest.cc625 internal::SnapSizer snap_sizer( in TEST_P()
628 internal::SnapSizer::LEFT_EDGE, in TEST_P()
629 internal::SnapSizer::OTHER_INPUT); in TEST_P()
657 internal::SnapSizer snap_sizer( in TEST_P()
660 internal::SnapSizer::RIGHT_EDGE, in TEST_P()
661 internal::SnapSizer::OTHER_INPUT); in TEST_P()
Dtoplevel_window_event_handler.cc318 internal::SnapSizer::SnapWindow(window_state, in OnGestureEvent()
320 internal::SnapSizer::LEFT_EDGE : internal::SnapSizer::RIGHT_EDGE); in OnGestureEvent()
/external/chromium_org/ash/accelerators/
Daccelerator_controller.cc594 internal::SnapSizer::SnapWindow(window_state, in HandleWindowSnap()
595 action == WINDOW_SNAP_LEFT ? internal::SnapSizer::LEFT_EDGE : in HandleWindowSnap()
596 internal::SnapSizer::RIGHT_EDGE); in HandleWindowSnap()
/external/chromium_org/ash/wm/dock/
Ddocked_window_resizer_unittest.cc1394 internal::SnapSizer::SnapWindow(window_state, in TEST_P()
1395 internal::SnapSizer::RIGHT_EDGE); in TEST_P()
1417 internal::SnapSizer::SnapWindow(window_state, in TEST_P()
1418 internal::SnapSizer::LEFT_EDGE); in TEST_P()