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

Side by Side Diff: athena/wm/window_manager_impl.cc

Issue 416243004: Enable touch text selection on Athena (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "athena/wm/public/window_manager.h" 5 #include "athena/wm/public/window_manager.h"
6 6
7 #include "athena/common/container_priorities.h" 7 #include "athena/common/container_priorities.h"
8 #include "athena/input/public/accelerator_manager.h" 8 #include "athena/input/public/accelerator_manager.h"
9 #include "athena/screen/public/screen_manager.h" 9 #include "athena/screen/public/screen_manager.h"
10 #include "athena/wm/bezel_controller.h" 10 #include "athena/wm/bezel_controller.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 111
112 void WindowManagerImpl::Layout() { 112 void WindowManagerImpl::Layout() {
113 if (!container_) 113 if (!container_)
114 return; 114 return;
115 gfx::Rect bounds = gfx::Rect(container_->bounds().size()); 115 gfx::Rect bounds = gfx::Rect(container_->bounds().size());
116 const aura::Window::Windows& children = container_->children(); 116 const aura::Window::Windows& children = container_->children();
117 for (aura::Window::Windows::const_iterator iter = children.begin(); 117 for (aura::Window::Windows::const_iterator iter = children.begin();
118 iter != children.end(); 118 iter != children.end();
119 ++iter) { 119 ++iter) {
120 if ((*iter)->type() == ui::wm::WINDOW_TYPE_NORMAL || 120 if ((*iter)->type() == ui::wm::WINDOW_TYPE_NORMAL)
121 (*iter)->type() == ui::wm::WINDOW_TYPE_POPUP)
122 (*iter)->SetBounds(bounds); 121 (*iter)->SetBounds(bounds);
123 } 122 }
124 } 123 }
125 124
126 void WindowManagerImpl::ToggleOverview() { 125 void WindowManagerImpl::ToggleOverview() {
127 if (overview_) { 126 if (overview_) {
128 overview_.reset(); 127 overview_.reset();
129 FOR_EACH_OBSERVER(WindowManagerObserver, observers_, 128 FOR_EACH_OBSERVER(WindowManagerObserver, observers_,
130 OnOverviewModeExit()); 129 OnOverviewModeExit());
131 } else { 130 } else {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 DCHECK(!instance); 232 DCHECK(!instance);
234 } 233 }
235 234
236 // static 235 // static
237 WindowManager* WindowManager::GetInstance() { 236 WindowManager* WindowManager::GetInstance() {
238 DCHECK(instance); 237 DCHECK(instance);
239 return instance; 238 return instance;
240 } 239 }
241 240
242 } // namespace athena 241 } // namespace athena
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698