Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1622)

Unified Diff: ash/wm/gestures/two_finger_drag_handler.cc

Issue 115153002: wm: public window_types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ozone deps Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/drag_window_resizer_unittest.cc ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/gestures/two_finger_drag_handler.cc
diff --git a/ash/wm/gestures/two_finger_drag_handler.cc b/ash/wm/gestures/two_finger_drag_handler.cc
index 5cf98a68ab8e637bf2d740b1e2620855a6f0fbcc..3f44a046ca19145ad495950a80016fe334c60cc6 100644
--- a/ash/wm/gestures/two_finger_drag_handler.cc
+++ b/ash/wm/gestures/two_finger_drag_handler.cc
@@ -8,7 +8,6 @@
#include "ash/wm/window_state.h"
#include "ash/wm/window_util.h"
#include "ash/wm/workspace/snap_sizer.h"
-#include "ui/aura/client/window_types.h"
#include "ui/aura/window.h"
#include "ui/aura/window_delegate.h"
#include "ui/base/hit_test.h"
@@ -16,6 +15,7 @@
#include "ui/compositor/scoped_layer_animation_settings.h"
#include "ui/events/event.h"
#include "ui/events/event_constants.h"
+#include "ui/wm/public/window_types.h"
namespace {
@@ -98,7 +98,7 @@ bool TwoFingerDragHandler::ProcessGestureEvent(aura::Window* target,
if (event.type() == ui::ET_GESTURE_BEGIN &&
event.details().touch_points() == 2) {
if (!in_gesture_drag_ && window_state->IsNormalShowState() &&
- target->type() == aura::client::WINDOW_TYPE_NORMAL) {
+ target->type() == ui::wm::WINDOW_TYPE_NORMAL) {
if (WindowComponentsAllowMoving(first_finger_hittest_,
target->delegate()->GetNonClientComponent(event.location()))) {
in_gesture_drag_ = true;
@@ -120,7 +120,7 @@ bool TwoFingerDragHandler::ProcessGestureEvent(aura::Window* target,
if (!in_gesture_drag_) {
// Consume all two-finger gestures on a normal window.
return event.details().touch_points() == 2 &&
- target->type() == aura::client::WINDOW_TYPE_NORMAL &&
+ target->type() == ui::wm::WINDOW_TYPE_NORMAL &&
window_state->IsNormalShowState();
}
// Since |in_gesture_drag_| is true a resizer was either created above or
« no previous file with comments | « ash/wm/drag_window_resizer_unittest.cc ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698