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

Side by Side Diff: views/controls/menu/menu_host_win.cc

Issue 6756043: Consolidate Widget Event code, other cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Additional code consolidation, move base defs, nix MakeMSG, TooltipManager cleanup, etc. Created 9 years, 8 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/controls/menu/menu_host_win.h" 5 #include "views/controls/menu/menu_host_win.h"
6 6
7 #include "base/win/windows_version.h" 7 #include "base/win/windows_version.h"
8 #include "views/controls/menu/menu_controller.h" 8 #include "views/controls/menu/menu_controller.h"
9 #include "views/controls/menu/menu_host_root_view.h" 9 #include "views/controls/menu/menu_host_root_view.h"
10 #include "views/controls/menu/menu_item_view.h" 10 #include "views/controls/menu/menu_item_view.h"
11 #include "views/controls/menu/submenu_view.h" 11 #include "views/controls/menu/submenu_view.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 void MenuHostWin::OnCancelMode() { 97 void MenuHostWin::OnCancelMode() {
98 submenu_->GetMenuItem()->GetMenuController()->Cancel( 98 submenu_->GetMenuItem()->GetMenuController()->Cancel(
99 MenuController::EXIT_ALL); 99 MenuController::EXIT_ALL);
100 } 100 }
101 101
102 RootView* MenuHostWin::CreateRootView() { 102 RootView* MenuHostWin::CreateRootView() {
103 return new MenuHostRootView(this, submenu_); 103 return new MenuHostRootView(this, submenu_);
104 } 104 }
105 105
106 bool MenuHostWin::ReleaseCaptureOnMouseReleased() { 106 bool MenuHostWin::ShouldReleaseCaptureOnMouseReleased() const {
107 return false; 107 return false;
108 } 108 }
109 109
110 void MenuHostWin::DoCapture() { 110 void MenuHostWin::DoCapture() {
111 owns_capture_ = true; 111 owns_capture_ = true;
112 SetNativeCapture(); 112 SetMouseCapture();
113 } 113 }
114 114
115 } // namespace views 115 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698