OLD | NEW |
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_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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // HtmlDialogUIDelegate implementation. | 63 // HtmlDialogUIDelegate implementation. |
64 virtual GURL GetDialogContentURL() const; | 64 virtual GURL GetDialogContentURL() const; |
65 virtual void GetDOMMessageHandlers( | 65 virtual void GetDOMMessageHandlers( |
66 std::vector<DOMMessageHandler*>* handlers) const; | 66 std::vector<DOMMessageHandler*>* handlers) const; |
67 virtual void GetDialogSize(gfx::Size* size) const; | 67 virtual void GetDialogSize(gfx::Size* size) const; |
68 virtual std::string GetDialogArgs() const; | 68 virtual std::string GetDialogArgs() const; |
69 virtual void OnDialogClosed(const std::string& json_retval); | 69 virtual void OnDialogClosed(const std::string& json_retval); |
70 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); | 70 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); |
71 virtual std::wstring GetDialogTitle() const; | 71 virtual std::wstring GetDialogTitle() const; |
72 virtual bool IsDialogModal() const; | 72 virtual bool IsDialogModal() const; |
| 73 virtual bool ShouldShowDialogTitle() const { return true; } |
73 | 74 |
74 // GaiaAuthConsumer implementation. | 75 // GaiaAuthConsumer implementation. |
75 virtual void OnClientLoginFailure( | 76 virtual void OnClientLoginFailure( |
76 const GoogleServiceAuthError& error); | 77 const GoogleServiceAuthError& error); |
77 virtual void OnClientLoginSuccess( | 78 virtual void OnClientLoginSuccess( |
78 const GaiaAuthConsumer::ClientLoginResult& credentials); | 79 const GaiaAuthConsumer::ClientLoginResult& credentials); |
79 | 80 |
80 private: | 81 private: |
81 friend class CloudPrintServiceProcessHelper; | 82 friend class CloudPrintServiceProcessHelper; |
82 friend class CloudPrintSetupMessageHandler; | 83 friend class CloudPrintSetupMessageHandler; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 std::string lsid_; | 119 std::string lsid_; |
119 | 120 |
120 // Handle to the ServiceProcessControl which talks to the service process. | 121 // Handle to the ServiceProcessControl which talks to the service process. |
121 ServiceProcessControl* process_control_; | 122 ServiceProcessControl* process_control_; |
122 Delegate* delegate_; | 123 Delegate* delegate_; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); | 125 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); |
125 }; | 126 }; |
126 | 127 |
127 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ | 128 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ |
OLD | NEW |