| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROMEOS_SIM_DIALOG_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SIM_DIALOG_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SIM_DIALOG_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SIM_DIALOG_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/webui/html_dialog_ui.h" | 8 #include "chrome/browser/ui/webui/html_dialog_ui.h" |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 virtual string16 GetDialogTitle() const OVERRIDE; | 34 virtual string16 GetDialogTitle() const OVERRIDE; |
| 35 virtual GURL GetDialogContentURL() const OVERRIDE; | 35 virtual GURL GetDialogContentURL() const OVERRIDE; |
| 36 virtual void GetWebUIMessageHandlers( | 36 virtual void GetWebUIMessageHandlers( |
| 37 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; | 37 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 38 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 38 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 39 virtual std::string GetDialogArgs() const OVERRIDE; | 39 virtual std::string GetDialogArgs() const OVERRIDE; |
| 40 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 40 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 41 virtual void OnCloseContents( | 41 virtual void OnCloseContents( |
| 42 content::WebContents* source, bool* out_close_dialog) OVERRIDE; | 42 content::WebContents* source, bool* out_close_dialog) OVERRIDE; |
| 43 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 43 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 44 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 44 virtual bool HandleContextMenu( |
| 45 const content::ContextMenuParams& params) OVERRIDE; |
| 45 | 46 |
| 46 SimDialogMode dialog_mode_; | 47 SimDialogMode dialog_mode_; |
| 47 | 48 |
| 48 DISALLOW_COPY_AND_ASSIGN(SimDialogDelegate); | 49 DISALLOW_COPY_AND_ASSIGN(SimDialogDelegate); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace chromeos | 52 } // namespace chromeos |
| 52 | 53 |
| 53 #endif // CHROME_BROWSER_CHROMEOS_SIM_DIALOG_DELEGATE_H_ | 54 #endif // CHROME_BROWSER_CHROMEOS_SIM_DIALOG_DELEGATE_H_ |
| OLD | NEW |