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

Unified Diff: ui/views/widget/android/android_focus_rules.cc

Issue 1403293003: Introduce AndroidFocusRules and NativeWidgetAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reviews Created 5 years, 1 month 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 | « ui/views/widget/android/android_focus_rules.h ('k') | ui/views/widget/android/native_widget_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/android/android_focus_rules.cc
diff --git a/third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.h b/ui/views/widget/android/android_focus_rules.cc
similarity index 44%
copy from third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.h
copy to ui/views/widget/android/android_focus_rules.cc
index 42eb2ec08c29c71cb56046a1148b90487dfd7a13..c01ace9ca58af9f1e1cc6116ca25e1b31a69cf9d 100644
--- a/third_party/WebKit/Source/modules/canvas2d/TouchHitRegion.h
+++ b/ui/views/widget/android/android_focus_rules.cc
@@ -2,22 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef TouchHitRegion_h
-#define TouchHitRegion_h
+#include "ui/views/widget/android/android_focus_rules.h"
-#include "modules/canvas2d/EventHitRegion.h"
-#include "wtf/Allocator.h"
+#include "ui/aura/window.h"
-namespace blink {
+namespace views {
-class Touch;
+AndroidFocusRules::AndroidFocusRules() {}
-class TouchHitRegion : public EventHitRegion {
- STATIC_ONLY(TouchHitRegion);
-public:
- static String region(Touch&);
-};
+AndroidFocusRules::~AndroidFocusRules() {}
-} // namespace blink
+bool AndroidFocusRules::SupportsChildActivation(aura::Window* window) const {
+ return window->IsRootWindow();
+}
-#endif
+} // namespace views
« no previous file with comments | « ui/views/widget/android/android_focus_rules.h ('k') | ui/views/widget/android/native_widget_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698