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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_view_win.h

Issue 5697005: Change SimpleMenuModel on OSX to support dynamic icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update after merge Created 10 years 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) 2010 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 CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 MSG_WM_SYSKEYUP(OnKeyUp) 202 MSG_WM_SYSKEYUP(OnKeyUp)
203 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) 203 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging)
204 DEFAULT_REFLECTION_HANDLER() // avoids black margin area 204 DEFAULT_REFLECTION_HANDLER() // avoids black margin area
205 END_MSG_MAP() 205 END_MSG_MAP()
206 206
207 // menus::SimpleMenuModel::Delegate 207 // menus::SimpleMenuModel::Delegate
208 virtual bool IsCommandIdChecked(int command_id) const; 208 virtual bool IsCommandIdChecked(int command_id) const;
209 virtual bool IsCommandIdEnabled(int command_id) const; 209 virtual bool IsCommandIdEnabled(int command_id) const;
210 virtual bool GetAcceleratorForCommandId(int command_id, 210 virtual bool GetAcceleratorForCommandId(int command_id,
211 menus::Accelerator* accelerator); 211 menus::Accelerator* accelerator);
212 virtual bool IsLabelForCommandIdDynamic(int command_id) const; 212 virtual bool IsItemForCommandIdDynamic(int command_id) const;
213 virtual std::wstring GetLabelForCommandId(int command_id) const; 213 virtual std::wstring GetLabelForCommandId(int command_id) const;
214 virtual void ExecuteCommand(int command_id); 214 virtual void ExecuteCommand(int command_id);
215 215
216 private: 216 private:
217 enum MouseButton { 217 enum MouseButton {
218 kLeft = 0, 218 kLeft = 0,
219 kRight = 1, 219 kRight = 1,
220 }; 220 };
221 221
222 // This object freezes repainting of the edit until the object is destroyed. 222 // This object freezes repainting of the edit until the object is destroyed.
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 // striken-out when displaying an insecure scheme. 520 // striken-out when displaying an insecure scheme.
521 url_parse::Component insecure_scheme_component_; 521 url_parse::Component insecure_scheme_component_;
522 522
523 // Instance of accessibility information and handling. 523 // Instance of accessibility information and handling.
524 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_; 524 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_;
525 525
526 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin); 526 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin);
527 }; 527 };
528 528
529 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ 529 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_
OLDNEW
« no previous file with comments | « app/menus/simple_menu_model.cc ('k') | chrome/browser/autocomplete/autocomplete_edit_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698