| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ATHENA_SCREEN_BACKGROUND_CONTROLLER_H_ | 5 #ifndef ATHENA_SCREEN_BACKGROUND_CONTROLLER_H_ |
| 6 #define ATHENA_SCREEN_BACKGROUND_CONTROLLER_H_ | 6 #define ATHENA_SCREEN_BACKGROUND_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 | 9 |
| 10 namespace aura { | 10 namespace aura { |
| 11 class Window; | 11 class Window; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 class ImageSkia; | 15 class ImageSkia; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace athena { | 18 namespace athena { |
| 19 class BackgroundView; | 19 class BackgroundView; |
| 20 | 20 |
| 21 // Controls background image switching. | 21 // Controls background image switching. |
| 22 class BackgroundController { | 22 class BackgroundController { |
| 23 public: | 23 public: |
| 24 explicit BackgroundController(aura::Window* container); | 24 // |popup_container| is the parent window to use for the "select network" |
| 25 // dialog. |
| 26 BackgroundController(aura::Window* background_container, |
| 27 aura::Window* popup_container); |
| 25 ~BackgroundController(); | 28 ~BackgroundController(); |
| 26 | 29 |
| 27 void SetImage(const gfx::ImageSkia& image); | 30 void SetImage(const gfx::ImageSkia& image); |
| 28 | 31 |
| 29 private: | 32 private: |
| 30 BackgroundView* background_view_; | 33 BackgroundView* background_view_; |
| 31 | 34 |
| 32 DISALLOW_COPY_AND_ASSIGN(BackgroundController); | 35 DISALLOW_COPY_AND_ASSIGN(BackgroundController); |
| 33 }; | 36 }; |
| 34 } | 37 |
| 38 } // namespace athena |
| 35 | 39 |
| 36 #endif // ATHENA_SCREEN_BACKGROUND_CONTROLLER_H_ | 40 #endif // ATHENA_SCREEN_BACKGROUND_CONTROLLER_H_ |
| OLD | NEW |