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

Side by Side Diff: athena/common/fill_layout_manager.cc

Issue 335793005: athena: Add support for virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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 | « athena/common/fill_layout_manager.h ('k') | athena/main/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "athena/common/fill_layout_manager.h"
6
7 #include "base/logging.h"
8 #include "ui/aura/window.h"
9
10 namespace athena {
11
12 FillLayoutManager::FillLayoutManager(aura::Window* container)
13 : container_(container) {
14 DCHECK(container_);
15 }
16
17 FillLayoutManager::~FillLayoutManager() {
18 }
19
20 void FillLayoutManager::OnWindowResized() {
21 gfx::Rect full_bounds = gfx::Rect(container_->bounds().size());
22 for (aura::Window::Windows::const_iterator iter =
23 container_->children().begin();
24 iter != container_->children().end();
25 ++iter) {
26 SetChildBoundsDirect(*iter, full_bounds);
27 }
28 }
29
30 void FillLayoutManager::OnWindowAddedToLayout(aura::Window* child) {
31 SetChildBoundsDirect(child, (gfx::Rect(container_->bounds().size())));
32 }
33
34 void FillLayoutManager::OnWillRemoveWindowFromLayout(aura::Window* child) {
35 }
36 void FillLayoutManager::OnWindowRemovedFromLayout(aura::Window* child) {
37 }
38 void FillLayoutManager::OnChildWindowVisibilityChanged(aura::Window* child,
39 bool visible) {
40 }
41 void FillLayoutManager::SetChildBounds(aura::Window* child,
42 const gfx::Rect& requested_bounds) {
43 // Ignore SetBounds request.
44 }
45
46 } // namespace athena
OLDNEW
« no previous file with comments | « athena/common/fill_layout_manager.h ('k') | athena/main/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698