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

Side by Side Diff: ash/wm/base_layout_manager.h

Issue 9515003: Fix the full screen switching browser window dipping below launcher bar issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the issue for managed window mode, add tests. Created 8 years, 9 months 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 | « no previous file | ash/wm/base_layout_manager.cc » ('j') | ash/wm/base_layout_manager.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ASH_WM_BASE_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_BASE_LAYOUT_MANAGER_H_
6 #define ASH_WM_BASE_LAYOUT_MANAGER_H_ 6 #define ASH_WM_BASE_LAYOUT_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; 43 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
44 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; 44 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
45 virtual void OnChildWindowVisibilityChanged(aura::Window* child, 45 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
46 bool visible) OVERRIDE; 46 bool visible) OVERRIDE;
47 virtual void SetChildBounds(aura::Window* child, 47 virtual void SetChildBounds(aura::Window* child,
48 const gfx::Rect& requested_bounds) OVERRIDE; 48 const gfx::Rect& requested_bounds) OVERRIDE;
49 49
50 // RootWindowObserver overrides: 50 // RootWindowObserver overrides:
51 virtual void OnRootWindowResized(const gfx::Size& new_size) OVERRIDE; 51 virtual void OnRootWindowResized(const gfx::Size& new_size) OVERRIDE;
52 52
53 // RootWindowObserver overrides:
54 virtual void OnScreenWorkAreaInsetsChanged() OVERRIDE;
55
53 // WindowObserver overrides: 56 // WindowObserver overrides:
54 virtual void OnWindowPropertyChanged(aura::Window* window, 57 virtual void OnWindowPropertyChanged(aura::Window* window,
55 const void* key, 58 const void* key,
56 intptr_t old) OVERRIDE; 59 intptr_t old) OVERRIDE;
57 60
58 private: 61 private:
59 // Update window bounds based on a change in show state. 62 // Update window bounds based on a change in show state.
60 void UpdateBoundsFromShowState(aura::Window* window); 63 void UpdateBoundsFromShowState(aura::Window* window);
61 64
65 // Adjusts the window sizes when the screen changes its size or its
66 // work area insets.
67 void AdjustWindowSizesForScreenChange();
68
62 // Set of windows we're listening to. 69 // Set of windows we're listening to.
63 WindowSet windows_; 70 WindowSet windows_;
64 71
65 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager); 72 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager);
66 }; 73 };
67 74
68 } // namespace internal 75 } // namespace internal
69 } // namespace ash 76 } // namespace ash
70 77
71 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_ 78 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/base_layout_manager.cc » ('j') | ash/wm/base_layout_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698