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

Side by Side Diff: ui/base/models/menu_model.h

Issue 6142013: Allow printing/saving a plugin through right click menu, even if it's in a fr... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « chrome/renderer/render_view.cc ('k') | ui/base/models/simple_menu_model.h » ('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 #ifndef UI_BASE_MODELS_MENU_MODEL_H_ 5 #ifndef UI_BASE_MODELS_MENU_MODEL_H_
6 #define UI_BASE_MODELS_MENU_MODEL_H_ 6 #define UI_BASE_MODELS_MENU_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Called when the item at the specified index has been activated. 106 // Called when the item at the specified index has been activated.
107 virtual void ActivatedAt(int index) = 0; 107 virtual void ActivatedAt(int index) = 0;
108 108
109 // Called when the item has been activated with a given disposition (for the 109 // Called when the item has been activated with a given disposition (for the
110 // case where the activation involves a navigation). 110 // case where the activation involves a navigation).
111 virtual void ActivatedAtWithDisposition(int index, int disposition); 111 virtual void ActivatedAtWithDisposition(int index, int disposition);
112 112
113 // Called when the menu is about to be shown. 113 // Called when the menu is about to be shown.
114 virtual void MenuWillShow() {} 114 virtual void MenuWillShow() {}
115 115
116 // Called when the menu has been closed.
117 virtual void MenuClosed() {}
118
116 // Retrieves the model and index that contains a specific command id. Returns 119 // Retrieves the model and index that contains a specific command id. Returns
117 // true if an item with the specified command id is found. |model| is inout, 120 // true if an item with the specified command id is found. |model| is inout,
118 // and specifies the model to start searching from. 121 // and specifies the model to start searching from.
119 static bool GetModelAndIndexForCommandId(int command_id, MenuModel** model, 122 static bool GetModelAndIndexForCommandId(int command_id, MenuModel** model,
120 int* index); 123 int* index);
121 }; 124 };
122 125
123 } // namespace ui 126 } // namespace ui
124 127
125 #endif // UI_BASE_MODELS_MENU_MODEL_H_ 128 #endif // UI_BASE_MODELS_MENU_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | ui/base/models/simple_menu_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698