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

Unified Diff: chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc

Issue 7942004: Consolidate/cleanup event cracking code; single out GdkEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Windows event code consolidation. Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | ui/base/win/event_util.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc
diff --git a/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc b/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc
index 5b611bce1ace8be430988e8d2576438d2657ddca..6698a244e1b815980ccda79fbcdce2f9a8bde3fc 100644
--- a/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc
+++ b/chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc
@@ -34,6 +34,10 @@
#include "views/widget/root_view.h"
#include "views/widget/widget.h"
+#if defined(OS_WIN)
+#include "ui/base/win/event_util.h"
+#endif
+
namespace {
const int kHideTimeoutInSeconds = 2;
@@ -147,8 +151,7 @@ void MouseObserver::StopObserving(MessageLoopForUI* loop) {
bool MouseObserver::IsMouseEvent(const views::NativeEvent& native_event) {
#if defined(OS_WIN) || defined(USE_AURA)
- return views::IsClientMouseEvent(native_event) ||
- views::IsNonClientMouseEvent(native_event);
+ return ui::IsMouseEvent(native_event);
#elif defined(OS_LINUX)
return native_event->type == GDK_MOTION_NOTIFY ||
native_event->type == GDK_BUTTON_PRESS ||
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | ui/base/win/event_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698