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

Unified Diff: views/controls/menu/menu_host_win.cc

Issue 328012: Makes it so that when a folder is open on the bookmark bar and the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « views/controls/menu/menu_host_win.h ('k') | views/controls/menu/menu_item_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_host_win.cc
===================================================================
--- views/controls/menu/menu_host_win.cc (revision 29776)
+++ views/controls/menu/menu_host_win.cc (working copy)
@@ -37,14 +37,8 @@
WidgetWin::Init(parent, bounds);
SetContentsView(contents_view);
Show();
- owns_capture_ = do_capture;
- if (do_capture) {
- SetCapture();
- has_capture_ = true;
-#ifdef DEBUG_MENU
- DLOG(INFO) << "Doing capture";
-#endif
- }
+ if (do_capture)
+ DoCapture();
}
void MenuHost::Show() {
@@ -82,6 +76,15 @@
#endif
}
+void MenuHost::DoCapture() {
+ owns_capture_ = true;
+ SetCapture();
+ has_capture_ = true;
+#ifdef DEBUG_MENU
+ DLOG(INFO) << "Doing capture";
+#endif
+}
+
void MenuHost::ReleaseCapture() {
if (owns_capture_) {
#ifdef DEBUG_MENU
« no previous file with comments | « views/controls/menu/menu_host_win.h ('k') | views/controls/menu/menu_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698