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

Side by Side Diff: ui/aura_shell/desktop_layout_manager.cc

Issue 7972023: Implicit animations through Layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More tweaks Created 9 years, 2 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 | « ui/aura/window_unittest.cc ('k') | ui/aura_shell/examples/window_type_launcher.h » ('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 (c) 2011 The Chromium Authors. All rights reserved. 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 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 #include "ui/aura_shell/desktop_layout_manager.h" 5 #include "ui/aura_shell/desktop_layout_manager.h"
6 6
7 #include "ui/aura/window.h" 7 #include "ui/aura/window.h"
8 #include "views/widget/widget.h" 8 #include "views/widget/widget.h"
9 9
10 namespace aura_shell { 10 namespace aura_shell {
(...skipping 12 matching lines...) Expand all
23 23
24 DesktopLayoutManager::~DesktopLayoutManager() { 24 DesktopLayoutManager::~DesktopLayoutManager() {
25 } 25 }
26 26
27 //////////////////////////////////////////////////////////////////////////////// 27 ////////////////////////////////////////////////////////////////////////////////
28 // DesktopLayoutManager, aura::LayoutManager implementation: 28 // DesktopLayoutManager, aura::LayoutManager implementation:
29 29
30 void DesktopLayoutManager::OnWindowResized() { 30 void DesktopLayoutManager::OnWindowResized() {
31 gfx::Rect fullscreen_bounds = 31 gfx::Rect fullscreen_bounds =
32 gfx::Rect(owner_->bounds().width(), owner_->bounds().height()); 32 gfx::Rect(owner_->bounds().width(), owner_->bounds().height());
33 toplevel_window_container_->SetBounds(fullscreen_bounds, 0); 33 toplevel_window_container_->SetBounds(fullscreen_bounds);
34 34
35 background_widget_->SetBounds(fullscreen_bounds); 35 background_widget_->SetBounds(fullscreen_bounds);
36 36
37 gfx::Rect launcher_bounds = launcher_widget_->GetWindowScreenBounds(); 37 gfx::Rect launcher_bounds = launcher_widget_->GetWindowScreenBounds();
38 launcher_widget_->SetBounds( 38 launcher_widget_->SetBounds(
39 gfx::Rect(owner_->bounds().width() / 2 - launcher_bounds.width() / 2, 39 gfx::Rect(owner_->bounds().width() / 2 - launcher_bounds.width() / 2,
40 owner_->bounds().bottom() - launcher_bounds.height(), 40 owner_->bounds().bottom() - launcher_bounds.height(),
41 launcher_bounds.width(), 41 launcher_bounds.width(),
42 launcher_bounds.height())); 42 launcher_bounds.height()));
43 43
44 gfx::Rect status_area_bounds = status_area_widget_->GetWindowScreenBounds(); 44 gfx::Rect status_area_bounds = status_area_widget_->GetWindowScreenBounds();
45 status_area_widget_->SetBounds( 45 status_area_widget_->SetBounds(
46 gfx::Rect(owner_->bounds().right() - status_area_bounds.width(), 46 gfx::Rect(owner_->bounds().right() - status_area_bounds.width(),
47 0, 47 0,
48 status_area_bounds.width(), 48 status_area_bounds.width(),
49 status_area_bounds.height())); 49 status_area_bounds.height()));
50 } 50 }
51 51
52 } // namespace internal 52 } // namespace internal
53 } // namespace aura_shell 53 } // namespace aura_shell
OLDNEW
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | ui/aura_shell/examples/window_type_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698