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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_setup_flow.h

Issue 7461136: Convert HtmlDialogUIDelegate::GetDialogTitle() to string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 9 years, 4 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) 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 CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 static CloudPrintSetupFlow* OpenDialog( 62 static CloudPrintSetupFlow* OpenDialog(
63 Profile* service, 63 Profile* service,
64 const base::WeakPtr<Delegate>& delegate, 64 const base::WeakPtr<Delegate>& delegate,
65 gfx::NativeWindow parent_window); 65 gfx::NativeWindow parent_window);
66 66
67 // Focuses the dialog. This is useful in cases where the dialog has been 67 // Focuses the dialog. This is useful in cases where the dialog has been
68 // obscured by a browser window. 68 // obscured by a browser window.
69 void Focus(); 69 void Focus();
70 70
71 // HtmlDialogUIDelegate implementation. 71 // HtmlDialogUIDelegate implementation.
72 virtual GURL GetDialogContentURL() const; 72 virtual GURL GetDialogContentURL() const OVERRIDE;
73 virtual void GetWebUIMessageHandlers( 73 virtual void GetWebUIMessageHandlers(
74 std::vector<WebUIMessageHandler*>* handlers) const; 74 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE;
75 virtual void GetDialogSize(gfx::Size* size) const; 75 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
76 virtual std::string GetDialogArgs() const; 76 virtual std::string GetDialogArgs() const OVERRIDE;
77 virtual void OnDialogClosed(const std::string& json_retval); 77 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
78 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); 78 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog)
79 virtual std::wstring GetDialogTitle() const; 79 OVERRIDE;
80 virtual bool IsDialogModal() const; 80 virtual string16 GetDialogTitle() const OVERRIDE;
81 virtual bool ShouldShowDialogTitle() const; 81 virtual bool IsDialogModal() const OVERRIDE;
82 virtual bool HandleContextMenu(const ContextMenuParams& params); 82 virtual bool ShouldShowDialogTitle() const OVERRIDE;
83 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE;
83 84
84 // GaiaAuthConsumer implementation. 85 // GaiaAuthConsumer implementation.
85 virtual void OnClientLoginSuccess( 86 virtual void OnClientLoginSuccess(
86 const GaiaAuthConsumer::ClientLoginResult& credentials); 87 const GaiaAuthConsumer::ClientLoginResult& credentials);
87 virtual void OnClientLoginFailure( 88 virtual void OnClientLoginFailure(
88 const GoogleServiceAuthError& error); 89 const GoogleServiceAuthError& error);
89 90
90 private: 91 private:
91 friend class CloudPrintServiceProcessHelper; 92 friend class CloudPrintServiceProcessHelper;
92 friend class CloudPrintSetupMessageHandler; 93 friend class CloudPrintSetupMessageHandler;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 bool setup_done_; 142 bool setup_done_;
142 143
143 // Handle to the ServiceProcessControl which talks to the service process. 144 // Handle to the ServiceProcessControl which talks to the service process.
144 ServiceProcessControl* process_control_; 145 ServiceProcessControl* process_control_;
145 base::WeakPtr<Delegate> delegate_; 146 base::WeakPtr<Delegate> delegate_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); 148 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow);
148 }; 149 };
149 150
150 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ 151 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/sim_dialog_delegate.cc ('k') | chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698