| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CHARGER_REPLACE_CHARGER_REPLACEMENT_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_REPLACEMENT_DIALOG_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_REPLACEMENT_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_REPLACEMENT_DIALOG_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 #include "ui/web_dialogs/web_dialog_delegate.h" | 9 #include "ui/web_dialogs/web_dialog_delegate.h" |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 41 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 42 virtual void OnCloseContents( | 42 virtual void OnCloseContents( |
| 43 content::WebContents* source, bool* out_close_dialog) OVERRIDE; | 43 content::WebContents* source, bool* out_close_dialog) OVERRIDE; |
| 44 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 44 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 45 virtual bool HandleContextMenu( | 45 virtual bool HandleContextMenu( |
| 46 const content::ContextMenuParams& params) OVERRIDE; | 46 const content::ContextMenuParams& params) OVERRIDE; |
| 47 | 47 |
| 48 static bool is_window_visible_; | 48 static bool is_window_visible_; |
| 49 static gfx::NativeWindow current_window_; | 49 static gfx::NativeWindow current_window_; |
| 50 | 50 |
| 51 gfx::NativeWindow parent_window_; | 51 const gfx::NativeWindow parent_window_; |
| 52 bool can_close_; | 52 bool can_close_; |
| 53 ChargerReplacementHandler* charger_replacement_handler_; | 53 ChargerReplacementHandler* charger_replacement_handler_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(ChargerReplacementDialog); | 55 DISALLOW_COPY_AND_ASSIGN(ChargerReplacementDialog); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace chromeos | 58 } // namespace chromeos |
| 59 | 59 |
| 60 #endif // CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_REPLACEMENT_DIALOG_H_ | 60 #endif // CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_REPLACEMENT_DIALOG_H_ |
| OLD | NEW |