| 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_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "gfx/native_widget_types.h" | 9 #include "gfx/native_widget_types.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // Returns native window hosting the status area. | 27 // Returns native window hosting the status area. |
| 28 virtual gfx::NativeWindow GetNativeWindow() const = 0; | 28 virtual gfx::NativeWindow GetNativeWindow() const = 0; |
| 29 | 29 |
| 30 // Indicates if options dialog related to the button specified should be | 30 // Indicates if options dialog related to the button specified should be |
| 31 // shown. | 31 // shown. |
| 32 virtual bool ShouldOpenButtonOptions( | 32 virtual bool ShouldOpenButtonOptions( |
| 33 const views::View* button_view) const = 0; | 33 const views::View* button_view) const = 0; |
| 34 | 34 |
| 35 // Opens options dialog related to the button specified. | 35 // Opens options dialog related to the button specified. |
| 36 virtual void OpenButtonOptions(const views::View* button_view) const = 0; | 36 virtual void OpenButtonOptions(const views::View* button_view) = 0; |
| 37 | 37 |
| 38 // Executes browser command. | 38 // Executes browser command. |
| 39 virtual void ExecuteBrowserCommand(int id) const = 0; | 39 virtual void ExecuteBrowserCommand(int id) const = 0; |
| 40 | 40 |
| 41 // True if status area hosted in browser. Otherwise it's OOBE/login state. | 41 // True if status area hosted in browser. Otherwise it's OOBE/login state. |
| 42 virtual bool IsBrowserMode() const = 0; | 42 virtual bool IsBrowserMode() const = 0; |
| 43 | 43 |
| 44 // True if status area hosted in screen locker. | 44 // True if status area hosted in screen locker. |
| 45 virtual bool IsScreenLockerMode() const = 0; | 45 virtual bool IsScreenLockerMode() const = 0; |
| 46 | 46 |
| 47 protected: | 47 protected: |
| 48 virtual ~StatusAreaHost() {} | 48 virtual ~StatusAreaHost() {} |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace chromeos | 51 } // namespace chromeos |
| 52 | 52 |
| 53 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ | 53 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ |
| OLD | NEW |