| 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_OPTIONS_NETWORK_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 virtual void OnDialogAccepted() = 0; | 38 virtual void OnDialogAccepted() = 0; |
| 39 | 39 |
| 40 // Called when dialog "Cancel" button is pressed. | 40 // Called when dialog "Cancel" button is pressed. |
| 41 virtual void OnDialogCancelled() = 0; | 41 virtual void OnDialogCancelled() = 0; |
| 42 | 42 |
| 43 protected: | 43 protected: |
| 44 virtual ~Delegate() {} | 44 virtual ~Delegate() {} |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 // Shows a network connection dialog if none is currently visible. | 47 // Shows a network connection dialog if none is currently visible. |
| 48 // Returns false if a dialog is already visible. | 48 static void Show(Network* network, gfx::NativeWindow parent); |
| 49 static bool Show(Network* network, gfx::NativeWindow parent); | 49 static void ShowForType(ConnectionType type, gfx::NativeWindow parent); |
| 50 static bool ShowForType(ConnectionType type, gfx::NativeWindow parent); | |
| 51 | 50 |
| 52 // Returns corresponding native window. | 51 // Returns corresponding native window. |
| 53 gfx::NativeWindow GetNativeWindow() const; | 52 gfx::NativeWindow GetNativeWindow() const; |
| 54 | 53 |
| 55 // views::DialogDelegate methods. | 54 // views::DialogDelegate methods. |
| 56 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 55 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; |
| 57 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; | 56 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; |
| 58 virtual bool Cancel() OVERRIDE; | 57 virtual bool Cancel() OVERRIDE; |
| 59 virtual bool Accept() OVERRIDE; | 58 virtual bool Accept() OVERRIDE; |
| 60 virtual views::View* CreateExtraView() OVERRIDE; | 59 virtual views::View* CreateExtraView() OVERRIDE; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 views::ImageView* image_view_; | 174 views::ImageView* image_view_; |
| 176 const gfx::ImageSkia* gray_image_; | 175 const gfx::ImageSkia* gray_image_; |
| 177 const gfx::ImageSkia* color_image_; | 176 const gfx::ImageSkia* color_image_; |
| 178 | 177 |
| 179 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView); | 178 DISALLOW_COPY_AND_ASSIGN(ControlledSettingIndicatorView); |
| 180 }; | 179 }; |
| 181 | 180 |
| 182 } // namespace chromeos | 181 } // namespace chromeos |
| 183 | 182 |
| 184 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ | 183 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_NETWORK_CONFIG_VIEW_H_ |
| OLD | NEW |