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

Side by Side Diff: ui/views/widget/native_widget_aura.cc

Issue 10479010: Gesture related changes for views: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test and add some mores Created 8 years, 6 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/view_unittest.cc ('k') | ui/views/widget/native_widget_aura_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/widget/native_widget_aura.h" 5 #include "ui/views/widget/native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/activation_client.h" 10 #include "ui/aura/client/activation_client.h"
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 it != widgets.end(); ++it) { 979 it != widgets.end(); ++it) {
980 (*it)->NotifyNativeViewHierarchyChanged(true, new_parent); 980 (*it)->NotifyNativeViewHierarchyChanged(true, new_parent);
981 } 981 }
982 } 982 }
983 983
984 // static 984 // static
985 bool NativeWidgetPrivate::IsMouseButtonDown() { 985 bool NativeWidgetPrivate::IsMouseButtonDown() {
986 return aura::Env::GetInstance()->is_mouse_button_down(); 986 return aura::Env::GetInstance()->is_mouse_button_down();
987 } 987 }
988 988
989 // static
990 bool NativeWidgetPrivate::IsTouchDown() {
991 return aura::Env::GetInstance()->is_touch_down();
992 }
993
989 } // namespace internal 994 } // namespace internal
990 } // namespace views 995 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/view_unittest.cc ('k') | ui/views/widget/native_widget_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698