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

Side by Side Diff: blimp/engine/app/ui/blimp_layout_manager.cc

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 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
« no previous file with comments | « blimp/engine/app/ui/blimp_layout_manager.h ('k') | blimp/engine/app/ui/blimp_screen.h » ('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 2015 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 "blimp/engine/app/ui/blimp_layout_manager.h"
6
7 #include "ui/aura/window.h"
8
9 namespace blimp {
10 namespace engine {
11
12 BlimpLayoutManager::BlimpLayoutManager(aura::Window* root_window)
13 : root_window_(root_window) {}
14
15 BlimpLayoutManager::~BlimpLayoutManager() {}
16
17 void BlimpLayoutManager::OnWindowResized() {}
18
19 void BlimpLayoutManager::OnWindowAddedToLayout(aura::Window* child) {
20 child->SetBounds(root_window_->bounds());
21 }
22
23 void BlimpLayoutManager::OnWillRemoveWindowFromLayout(aura::Window* child) {}
24
25 void BlimpLayoutManager::OnWindowRemovedFromLayout(aura::Window* child) {}
26
27 void BlimpLayoutManager::OnChildWindowVisibilityChanged(aura::Window* child,
28 bool visible) {}
29
30 void BlimpLayoutManager::SetChildBounds(aura::Window* child,
31 const gfx::Rect& requested_bounds) {
32 SetChildBoundsDirect(child, root_window_->bounds());
33 }
34
35 } // namespace engine
36 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/app/ui/blimp_layout_manager.h ('k') | blimp/engine/app/ui/blimp_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698