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

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

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura_shell/modal_container_layout_manager_unittest.cc ('k') | ui/aura_shell/shell.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 (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/shelf_layout_controller.h" 5 #include "ui/aura_shell/shelf_layout_controller.h"
6 6
7 #include "ui/aura/desktop.h" 7 #include "ui/aura/desktop.h"
8 #include "ui/aura/screen_aura.h" 8 #include "ui/aura/screen_aura.h"
9 #include "ui/gfx/compositor/layer.h" 9 #include "ui/gfx/compositor/layer.h"
10 #include "ui/gfx/compositor/layer_animator.h" 10 #include "ui/gfx/compositor/layer_animator.h"
11 #include "views/widget/widget.h" 11 #include "ui/views/widget/widget.h"
12 12
13 namespace aura_shell { 13 namespace aura_shell {
14 namespace internal { 14 namespace internal {
15 15
16 namespace { 16 namespace {
17 17
18 ui::Layer* GetLayer(views::Widget* widget) { 18 ui::Layer* GetLayer(views::Widget* widget) {
19 return widget->GetNativeView()->layer(); 19 return widget->GetNativeView()->layer();
20 } 20 }
21 21
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 animating_ = false; 109 animating_ = false;
110 visible_ = !visible_; 110 visible_ = !visible_;
111 TargetBounds target_bounds; 111 TargetBounds target_bounds;
112 CalculateTargetBounds(visible_, &target_bounds); 112 CalculateTargetBounds(visible_, &target_bounds);
113 aura::Desktop::GetInstance()->screen()->set_work_area_insets( 113 aura::Desktop::GetInstance()->screen()->set_work_area_insets(
114 target_bounds.work_area_insets); 114 target_bounds.work_area_insets);
115 } 115 }
116 116
117 } // internal 117 } // internal
118 } // aura_shell 118 } // aura_shell
OLDNEW
« no previous file with comments | « ui/aura_shell/modal_container_layout_manager_unittest.cc ('k') | ui/aura_shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698