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

Side by Side Diff: ui/wm/core/shadow_controller.cc

Issue 196063002: Move wm/core to wm namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 | « ui/wm/core/shadow_controller.h ('k') | ui/wm/core/shadow_controller_unittest.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) 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 #include "ui/wm/core/shadow_controller.h" 5 #include "ui/wm/core/shadow_controller.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/linked_ptr.h" 11 #include "base/memory/linked_ptr.h"
12 #include "base/scoped_observer.h" 12 #include "base/scoped_observer.h"
13 #include "ui/aura/client/activation_client.h" 13 #include "ui/aura/client/activation_client.h"
14 #include "ui/aura/env.h" 14 #include "ui/aura/env.h"
15 #include "ui/aura/env_observer.h" 15 #include "ui/aura/env_observer.h"
16 #include "ui/aura/window.h" 16 #include "ui/aura/window.h"
17 #include "ui/aura/window_event_dispatcher.h" 17 #include "ui/aura/window_event_dispatcher.h"
18 #include "ui/aura/window_observer.h" 18 #include "ui/aura/window_observer.h"
19 #include "ui/compositor/layer.h" 19 #include "ui/compositor/layer.h"
20 #include "ui/wm/core/shadow.h" 20 #include "ui/wm/core/shadow.h"
21 #include "ui/wm/core/shadow_types.h" 21 #include "ui/wm/core/shadow_types.h"
22 #include "ui/wm/core/window_util.h" 22 #include "ui/wm/core/window_util.h"
23 23
24 using std::make_pair; 24 using std::make_pair;
25 25
26 namespace views { 26 namespace wm {
27 namespace corewm {
28 27
29 namespace { 28 namespace {
30 29
31 ShadowType GetShadowTypeFromWindow(aura::Window* window) { 30 ShadowType GetShadowTypeFromWindow(aura::Window* window) {
32 switch (window->type()) { 31 switch (window->type()) {
33 case ui::wm::WINDOW_TYPE_NORMAL: 32 case ui::wm::WINDOW_TYPE_NORMAL:
34 case ui::wm::WINDOW_TYPE_PANEL: 33 case ui::wm::WINDOW_TYPE_PANEL:
35 case ui::wm::WINDOW_TYPE_MENU: 34 case ui::wm::WINDOW_TYPE_MENU:
36 case ui::wm::WINDOW_TYPE_TOOLTIP: 35 case ui::wm::WINDOW_TYPE_TOOLTIP:
37 return SHADOW_TYPE_RECTANGULAR; 36 return SHADOW_TYPE_RECTANGULAR;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 aura::Window* lost_active) { 262 aura::Window* lost_active) {
264 impl_->OnWindowActivated(gained_active, lost_active); 263 impl_->OnWindowActivated(gained_active, lost_active);
265 } 264 }
266 265
267 // ShadowController::TestApi --------------------------------------------------- 266 // ShadowController::TestApi ---------------------------------------------------
268 267
269 Shadow* ShadowController::TestApi::GetShadowForWindow(aura::Window* window) { 268 Shadow* ShadowController::TestApi::GetShadowForWindow(aura::Window* window) {
270 return controller_->impl_->GetShadowForWindow(window); 269 return controller_->impl_->GetShadowForWindow(window);
271 } 270 }
272 271
273 } // namespace corewm 272 } // namespace wm
274 } // namespace views
OLDNEW
« no previous file with comments | « ui/wm/core/shadow_controller.h ('k') | ui/wm/core/shadow_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698