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

Side by Side Diff: ui/aura_shell/status_area_layout_manager.h

Issue 8817016: Revert 113185 - [cros, Aura] Refresh status area widget bounds on StatusAreaView layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura_shell/shell.cc ('k') | ui/aura_shell/status_area_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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_AURA_SHELL_STATUS_AREA_LAYOUT_MANAGER_H_
6 #define UI_AURA_SHELL_STATUS_AREA_LAYOUT_MANAGER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "ui/aura/layout_manager.h"
12
13 namespace aura_shell {
14 namespace internal {
15
16 class ShelfLayoutManager;
17
18 // StatusAreaLayoutManager is a layout manager responsible for the status area.
19 // In any case when status area needs relayout it redirects this call to
20 // ShelfLayoutManager.
21 class StatusAreaLayoutManager : public aura::LayoutManager {
22 public:
23 explicit StatusAreaLayoutManager(ShelfLayoutManager* shelf);
24 virtual ~StatusAreaLayoutManager();
25
26 // Overridden from aura::LayoutManager:
27 virtual void OnWindowResized() OVERRIDE;
28 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
29 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
30 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
31 bool visible) OVERRIDE;
32 virtual void SetChildBounds(aura::Window* child,
33 const gfx::Rect& requested_bounds) OVERRIDE;
34
35 private:
36 // Updates layout of the status area. Effectively calls ShelfLayoutManager
37 // to update layout of the shelf.
38 void LayoutStatusArea();
39
40 // True when inside LayoutStatusArea method.
41 // Used to prevent calling itself again from SetChildBounds().
42 bool in_layout_;
43
44 ShelfLayoutManager* shelf_;
45
46 DISALLOW_COPY_AND_ASSIGN(StatusAreaLayoutManager);
47 };
48
49 } // namespace internal
50 } // namespace aura_shell
51
52 #endif // UI_AURA_SHELL_STATUS_AREA_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/shell.cc ('k') | ui/aura_shell/status_area_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698