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

Side by Side Diff: ash/shell/window_type_launcher.h

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 6 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 | « ash/shell.cc ('k') | ash/shell/window_type_launcher.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ 5 #ifndef ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_
6 #define ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ 6 #define ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_
7 7
8 #include "ui/views/context_menu_controller.h" 8 #include "ui/views/context_menu_controller.h"
9 #include "ui/views/controls/button/button.h" 9 #include "ui/views/controls/button/button.h"
10 #include "ui/views/controls/menu/menu_delegate.h" 10 #include "ui/views/controls/menu/menu_delegate.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Overridden from views::ButtonListener: 54 // Overridden from views::ButtonListener:
55 virtual void ButtonPressed(views::Button* sender, 55 virtual void ButtonPressed(views::Button* sender,
56 const ui::Event& event) OVERRIDE; 56 const ui::Event& event) OVERRIDE;
57 57
58 #if !defined(OS_MACOSX) 58 #if !defined(OS_MACOSX)
59 // Overridden from views::MenuDelegate: 59 // Overridden from views::MenuDelegate:
60 virtual void ExecuteCommand(int id, int event_flags) OVERRIDE; 60 virtual void ExecuteCommand(int id, int event_flags) OVERRIDE;
61 61
62 // Override from views::ContextMenuController: 62 // Override from views::ContextMenuController:
63 virtual void ShowContextMenuForView(views::View* source, 63 virtual void ShowContextMenuForView(views::View* source,
64 const gfx::Point& point) OVERRIDE; 64 const gfx::Point& point,
65 ui::MenuSourceType source_type) OVERRIDE;
65 #endif // !defined(OS_MACOSX) 66 #endif // !defined(OS_MACOSX)
66 67
67 views::LabelButton* create_button_; 68 views::LabelButton* create_button_;
68 views::LabelButton* create_persistant_button_; 69 views::LabelButton* create_persistant_button_;
69 views::LabelButton* panel_button_; 70 views::LabelButton* panel_button_;
70 views::LabelButton* create_nonresizable_button_; 71 views::LabelButton* create_nonresizable_button_;
71 views::LabelButton* bubble_button_; 72 views::LabelButton* bubble_button_;
72 views::LabelButton* lock_button_; 73 views::LabelButton* lock_button_;
73 views::LabelButton* widgets_button_; 74 views::LabelButton* widgets_button_;
74 views::LabelButton* system_modal_button_; 75 views::LabelButton* system_modal_button_;
75 views::LabelButton* window_modal_button_; 76 views::LabelButton* window_modal_button_;
76 views::LabelButton* child_modal_button_; 77 views::LabelButton* child_modal_button_;
77 views::LabelButton* transient_button_; 78 views::LabelButton* transient_button_;
78 views::LabelButton* examples_button_; 79 views::LabelButton* examples_button_;
79 views::LabelButton* show_hide_window_button_; 80 views::LabelButton* show_hide_window_button_;
80 views::LabelButton* show_screensaver_; 81 views::LabelButton* show_screensaver_;
81 views::LabelButton* show_web_notification_; 82 views::LabelButton* show_web_notification_;
82 #if !defined(OS_MACOSX) 83 #if !defined(OS_MACOSX)
83 scoped_ptr<views::MenuRunner> menu_runner_; 84 scoped_ptr<views::MenuRunner> menu_runner_;
84 #endif 85 #endif
85 86
86 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher); 87 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher);
87 }; 88 };
88 89
89 } // namespace shell 90 } // namespace shell
90 } // namespace ash 91 } // namespace ash
91 92
92 #endif // ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ 93 #endif // ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/shell/window_type_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698