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

Unified Diff: chrome/browser/views/bookmark_menu_button.cc

Issue 115831: Converts a bunch things from NativeWindow to NativeView to make it... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | « chrome/browser/input_window_dialog_win.cc ('k') | chrome/browser/views/bookmark_menu_controller_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_menu_button.cc
===================================================================
--- chrome/browser/views/bookmark_menu_button.cc (revision 17017)
+++ chrome/browser/views/bookmark_menu_button.cc (working copy)
@@ -4,6 +4,12 @@
#include "chrome/browser/views/bookmark_menu_button.h"
+#include "build/build_config.h"
+
+#if defined(OS_GTK)
+#include <gtk/gtk.h>
+#endif
+
#include "app/resource_bundle.h"
#include "app/os_exchange_data.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
@@ -129,9 +135,13 @@
if (show_drop_menu_timer_.IsRunning())
return;
+#if defined(OS_WIN)
static DWORD delay = 0;
if (!delay && !SystemParametersInfo(SPI_GETMENUSHOWDELAY, 0, &delay, 0))
delay = 400;
+#else
+ static int delay = 400;
+#endif
show_drop_menu_timer_.Start(base::TimeDelta::FromMilliseconds(delay),
this, &BookmarkMenuButton::ShowDropMenu);
}
« no previous file with comments | « chrome/browser/input_window_dialog_win.cc ('k') | chrome/browser/views/bookmark_menu_controller_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698