Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: athena/util/fill_layout_manager.h

Issue 697143005: Fills athena background always. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: visibility changed Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « athena/system/background_controller.cc ('k') | athena/util/fill_layout_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_UTIL_FILL_LAYOUT_MANAGER_H_ 5 #ifndef ATHENA_UTIL_FILL_LAYOUT_MANAGER_H_
6 #define ATHENA_UTIL_FILL_LAYOUT_MANAGER_H_ 6 #define ATHENA_UTIL_FILL_LAYOUT_MANAGER_H_
7 7
8 #include "athena/athena_export.h" 8 #include "athena/athena_export.h"
9 #include "ui/aura/layout_manager.h" 9 #include "ui/aura/layout_manager.h"
10 10
11 namespace athena { 11 namespace athena {
12 12
13 class ATHENA_EXPORT FillLayoutManager : public aura::LayoutManager { 13 class ATHENA_EXPORT FillLayoutManager : public aura::LayoutManager {
14 public: 14 public:
15 static void SetAlwaysFill(aura::Window* window);
16
15 explicit FillLayoutManager(aura::Window* container); 17 explicit FillLayoutManager(aura::Window* container);
16 ~FillLayoutManager() override; 18 ~FillLayoutManager() override;
17 19
18 // aura::LayoutManager: 20 // aura::LayoutManager:
19 virtual void OnWindowResized() override; 21 virtual void OnWindowResized() override;
20 virtual void OnWindowAddedToLayout(aura::Window* child) override; 22 virtual void OnWindowAddedToLayout(aura::Window* child) override;
21 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) override; 23 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) override;
22 virtual void OnWindowRemovedFromLayout(aura::Window* child) override; 24 virtual void OnWindowRemovedFromLayout(aura::Window* child) override;
23 virtual void OnChildWindowVisibilityChanged(aura::Window* child, 25 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
24 bool visible) override; 26 bool visible) override;
25 virtual void SetChildBounds(aura::Window* child, 27 virtual void SetChildBounds(aura::Window* child,
26 const gfx::Rect& requested_bounds) override; 28 const gfx::Rect& requested_bounds) override;
27 29
28 private: 30 private:
29 aura::Window* container_; 31 aura::Window* container_;
30 32
31 DISALLOW_COPY_AND_ASSIGN(FillLayoutManager); 33 DISALLOW_COPY_AND_ASSIGN(FillLayoutManager);
32 }; 34 };
33 35
34 } // namespace athena 36 } // namespace athena
35 37
36 #endif // ATHENA_UTIL_FILL_LAYOUT_MANAGER_H_ 38 #endif // ATHENA_UTIL_FILL_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « athena/system/background_controller.cc ('k') | athena/util/fill_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698