| 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_UI_VIEWS_ASH_STATUS_AREA_HOST_AURA_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_STATUS_AREA_HOST_AURA_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_ASH_STATUS_AREA_HOST_AURA_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_STATUS_AREA_HOST_AURA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/chromeos/status/status_area_button.h" | 10 #include "chrome/browser/chromeos/status/status_area_button.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace views { | 23 namespace views { |
| 24 class Views; | 24 class Views; |
| 25 class Widget; | 25 class Widget; |
| 26 } | 26 } |
| 27 | 27 |
| 28 class StatusAreaHostAura : public StatusAreaButton::Delegate, | 28 class StatusAreaHostAura : public StatusAreaButton::Delegate, |
| 29 public BrowserList::Observer, | 29 public BrowserList::Observer, |
| 30 public content::NotificationObserver { | 30 public content::NotificationObserver { |
| 31 public: | 31 public: |
| 32 // Returns the padding between the corner of the status area and the corner of | |
| 33 // the screen when we're displaying either the login/lock screen or a browser | |
| 34 // window in compact mode. Exposed here for tests. | |
| 35 static gfx::Size GetCompactModeLoginAndLockOffset(); | |
| 36 static gfx::Size GetCompactModeBrowserOffset(); | |
| 37 | |
| 38 StatusAreaHostAura(); | 32 StatusAreaHostAura(); |
| 39 virtual ~StatusAreaHostAura(); | 33 virtual ~StatusAreaHostAura(); |
| 40 | 34 |
| 41 // Returns the status area view. | 35 // Returns the status area view. |
| 42 StatusAreaView* GetStatusArea(); | 36 StatusAreaView* GetStatusArea(); |
| 43 | 37 |
| 44 // Instantiates and sets |status_area_view_|, and sets it as the contents of | 38 // Instantiates and sets |status_area_view_|, and sets it as the contents of |
| 45 // a new views::Widget |status_area_widget_| which is returned. | 39 // a new views::Widget |status_area_widget_| which is returned. |
| 46 // The caller is expected to take ownership of |status_area_widget_|. | 40 // The caller is expected to take ownership of |status_area_widget_|. |
| 47 views::Widget* CreateStatusArea(); | 41 views::Widget* CreateStatusArea(); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 80 |
| 87 scoped_ptr<ClockUpdater> clock_updater_; | 81 scoped_ptr<ClockUpdater> clock_updater_; |
| 88 #endif | 82 #endif |
| 89 | 83 |
| 90 content::NotificationRegistrar registrar_; | 84 content::NotificationRegistrar registrar_; |
| 91 | 85 |
| 92 DISALLOW_COPY_AND_ASSIGN(StatusAreaHostAura); | 86 DISALLOW_COPY_AND_ASSIGN(StatusAreaHostAura); |
| 93 }; | 87 }; |
| 94 | 88 |
| 95 #endif // CHROME_BROWSER_UI_VIEWS_ASH_STATUS_AREA_HOST_AURA_H_ | 89 #endif // CHROME_BROWSER_UI_VIEWS_ASH_STATUS_AREA_HOST_AURA_H_ |
| OLD | NEW |