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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.h

Issue 126223: Replace std:;wstring with std::string in locale-name related APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "chrome/common/page_transition_types.h" 9 #include "chrome/common/page_transition_types.h"
10 #include "webkit/glue/context_menu.h" 10 #include "webkit/glue/context_menu.h"
(...skipping 18 matching lines...) Expand all
29 29
30 // Functions to be implemented by platform-specific subclasses --------------- 30 // Functions to be implemented by platform-specific subclasses ---------------
31 31
32 // Platform specific initialization goes here. 32 // Platform specific initialization goes here.
33 virtual void DoInit() {} 33 virtual void DoInit() {}
34 34
35 // Append a normal menu item, taking the name from the id. 35 // Append a normal menu item, taking the name from the id.
36 virtual void AppendMenuItem(int id) = 0; 36 virtual void AppendMenuItem(int id) = 0;
37 37
38 // Append a normal menu item, using |label| for the name. 38 // Append a normal menu item, using |label| for the name.
39 virtual void AppendMenuItem(int id, const std::wstring& label) = 0; 39 virtual void AppendMenuItem(int id, const string16& label) = 0;
40 40
41 // Append a radio menu item. 41 // Append a radio menu item.
42 virtual void AppendRadioMenuItem(int id, const std::wstring& label) = 0; 42 virtual void AppendRadioMenuItem(int id, const string16& label) = 0;
43 43
44 // Append a checkbox menu item. 44 // Append a checkbox menu item.
45 virtual void AppendCheckboxMenuItem(int id, const std::wstring& label) = 0; 45 virtual void AppendCheckboxMenuItem(int id, const string16& label) = 0;
46 46
47 // Append a separator. 47 // Append a separator.
48 virtual void AppendSeparator() = 0; 48 virtual void AppendSeparator() = 0;
49 49
50 // Start creating a submenu. Any calls to Append*() between calls to 50 // Start creating a submenu. Any calls to Append*() between calls to
51 // StartSubMenu() and FinishSubMenu() will apply to the submenu rather than 51 // StartSubMenu() and FinishSubMenu() will apply to the submenu rather than
52 // the main menu we are building. We only support at most single-depth 52 // the main menu we are building. We only support at most single-depth
53 // submenus, so calls to StartSubMenu() while we are already building a 53 // submenus, so calls to StartSubMenu() while we are already building a
54 // submenu will be ignored. 54 // submenu will be ignored.
55 virtual void StartSubMenu(int id, const std::wstring& label) = 0; 55 virtual void StartSubMenu(int id, const string16& label) = 0;
56 56
57 // Finish creating the submenu and attach it to the main menu. 57 // Finish creating the submenu and attach it to the main menu.
58 virtual void FinishSubMenu() = 0; 58 virtual void FinishSubMenu() = 0;
59 59
60 // For Linux, we want to know when we have written a URL to the clipboard. 60 // For Linux, we want to know when we have written a URL to the clipboard.
61 // Most platforms won't care. 61 // Most platforms won't care.
62 virtual void DidWriteURLToClipboard(const std::string& url) { }; 62 virtual void DidWriteURLToClipboard(const std::string& url) { };
63 63
64 // Delegate functions -------------------------------------------------------- 64 // Delegate functions --------------------------------------------------------
65 65
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Writes the specified text/url to the system clipboard 97 // Writes the specified text/url to the system clipboard
98 void WriteTextToClipboard(const string16& text); 98 void WriteTextToClipboard(const string16& text);
99 void WriteURLToClipboard(const GURL& url); 99 void WriteURLToClipboard(const GURL& url);
100 100
101 bool IsDevCommandEnabled(int id) const; 101 bool IsDevCommandEnabled(int id) const;
102 102
103 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 103 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
104 }; 104 };
105 105
106 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 106 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_unittest.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698