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

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: Added override comment + Rebased Created 6 years, 4 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 void WindowManagerImpl::Layout() { 116 void WindowManagerImpl::Layout() {
117 if (!container_) 117 if (!container_)
118 return; 118 return;
119 SetInOverview(false); 119 SetInOverview(false);
120 gfx::Rect bounds = gfx::Rect(container_->bounds().size()); 120 gfx::Rect bounds = gfx::Rect(container_->bounds().size());
121 const aura::Window::Windows& children = container_->children(); 121 const aura::Window::Windows& children = container_->children();
122 for (aura::Window::Windows::const_iterator iter = children.begin(); 122 for (aura::Window::Windows::const_iterator iter = children.begin();
123 iter != children.end(); 123 iter != children.end();
124 ++iter) { 124 ++iter) {
125 if ((*iter)->type() == ui::wm::WINDOW_TYPE_NORMAL || 125 if ((*iter)->type() == ui::wm::WINDOW_TYPE_NORMAL)
126 (*iter)->type() == ui::wm::WINDOW_TYPE_POPUP)
127 (*iter)->SetBounds(bounds); 126 (*iter)->SetBounds(bounds);
128 } 127 }
129 } 128 }
130 129
131 void WindowManagerImpl::ToggleOverview() { 130 void WindowManagerImpl::ToggleOverview() {
132 SetInOverview(overview_.get() == NULL); 131 SetInOverview(overview_.get() == NULL);
133 } 132 }
134 133
135 void WindowManagerImpl::SetInOverview(bool active) { 134 void WindowManagerImpl::SetInOverview(bool active) {
136 bool in_overview = !!overview_; 135 bool in_overview = !!overview_;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 DCHECK(!instance); 243 DCHECK(!instance);
245 } 244 }
246 245
247 // static 246 // static
248 WindowManager* WindowManager::GetInstance() { 247 WindowManager* WindowManager::GetInstance() {
249 DCHECK(instance); 248 DCHECK(instance);
250 return instance; 249 return instance;
251 } 250 }
252 251
253 } // namespace athena 252 } // namespace athena
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698