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

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

Issue 6756043: Consolidate Widget Event code, other cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. 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
« no previous file with comments | « views/controls/menu/menu_host_gtk.cc ('k') | views/controls/menu/menu_host_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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
6 #ifndef VIEWS_CONTROLS_MENU_MENU_HOST_WIN_H_ 5 #ifndef VIEWS_CONTROLS_MENU_MENU_HOST_WIN_H_
7 #define VIEWS_CONTROLS_MENU_MENU_HOST_WIN_H_ 6 #define VIEWS_CONTROLS_MENU_MENU_HOST_WIN_H_
8 #pragma once 7 #pragma once
9 8
10 #include "views/controls/menu/native_menu_host.h" 9 #include "views/controls/menu/native_menu_host.h"
11 #include "views/widget/widget_win.h" 10 #include "views/widget/widget_win.h"
12 11
13 namespace views { 12 namespace views {
14 13
15 class SubmenuView; 14 class SubmenuView;
(...skipping 17 matching lines...) Expand all
33 virtual void DestroyMenuHost() OVERRIDE; 32 virtual void DestroyMenuHost() OVERRIDE;
34 virtual void SetMenuHostBounds(const gfx::Rect& bounds) OVERRIDE; 33 virtual void SetMenuHostBounds(const gfx::Rect& bounds) OVERRIDE;
35 virtual void ReleaseMenuHostCapture() OVERRIDE; 34 virtual void ReleaseMenuHostCapture() OVERRIDE;
36 virtual gfx::NativeWindow GetMenuHostWindow() OVERRIDE; 35 virtual gfx::NativeWindow GetMenuHostWindow() OVERRIDE;
37 36
38 // Overridden from WidgetWin: 37 // Overridden from WidgetWin:
39 virtual void OnDestroy() OVERRIDE; 38 virtual void OnDestroy() OVERRIDE;
40 virtual void OnCaptureChanged(HWND hwnd) OVERRIDE; 39 virtual void OnCaptureChanged(HWND hwnd) OVERRIDE;
41 virtual void OnCancelMode() OVERRIDE; 40 virtual void OnCancelMode() OVERRIDE;
42 virtual RootView* CreateRootView() OVERRIDE; 41 virtual RootView* CreateRootView() OVERRIDE;
43 virtual bool ReleaseCaptureOnMouseReleased() OVERRIDE; 42 virtual bool ShouldReleaseCaptureOnMouseReleased() const OVERRIDE;
44 43
45 void DoCapture(); 44 void DoCapture();
46 45
47 // If true, DestroyMenuHost has been invoked. 46 // If true, DestroyMenuHost has been invoked.
48 bool destroying_; 47 bool destroying_;
49 48
50 // If true, we own the capture and need to release it. 49 // If true, we own the capture and need to release it.
51 bool owns_capture_; 50 bool owns_capture_;
52 51
53 // The view we contain. 52 // The view we contain.
54 SubmenuView* submenu_; 53 SubmenuView* submenu_;
55 54
56 DISALLOW_COPY_AND_ASSIGN(MenuHostWin); 55 DISALLOW_COPY_AND_ASSIGN(MenuHostWin);
57 }; 56 };
58 57
59 } // namespace views 58 } // namespace views
60 59
61 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_WIN_H_ 60 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_WIN_H_
OLDNEW
« no previous file with comments | « views/controls/menu/menu_host_gtk.cc ('k') | views/controls/menu/menu_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698