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

Side by Side Diff: ash/wm/lock_layout_manager.cc

Issue 2323823004: Add action for each button on opt-in IME menu. (Closed)
Patch Set: Created 4 years, 3 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
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 "ash/wm/lock_layout_manager.h" 5 #include "ash/wm/lock_layout_manager.h"
6 6
7 #include "ash/common/wm/window_state.h" 7 #include "ash/common/wm/window_state.h"
8 #include "ash/common/wm/wm_event.h" 8 #include "ash/common/wm/wm_event.h"
9 #include "ash/common/wm_shell.h" 9 #include "ash/common/wm_shell.h"
10 #include "ash/wm/lock_window_state.h" 10 #include "ash/wm/lock_window_state.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 is_observing_keyboard_ = false; 113 is_observing_keyboard_ = false;
114 } 114 }
115 } 115 }
116 } 116 }
117 117
118 void LockLayoutManager::OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) { 118 void LockLayoutManager::OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) {
119 keyboard_bounds_ = new_bounds; 119 keyboard_bounds_ = new_bounds;
120 OnWindowResized(); 120 OnWindowResized();
121 } 121 }
122 122
123 void LockLayoutManager::OnKeyboardHidden() {}
124
123 void LockLayoutManager::AdjustWindowsForWorkAreaChange( 125 void LockLayoutManager::AdjustWindowsForWorkAreaChange(
124 const wm::WMEvent* event) { 126 const wm::WMEvent* event) {
125 DCHECK(event->type() == wm::WM_EVENT_DISPLAY_BOUNDS_CHANGED || 127 DCHECK(event->type() == wm::WM_EVENT_DISPLAY_BOUNDS_CHANGED ||
126 event->type() == wm::WM_EVENT_WORKAREA_BOUNDS_CHANGED); 128 event->type() == wm::WM_EVENT_WORKAREA_BOUNDS_CHANGED);
127 129
128 for (aura::Window::Windows::const_iterator it = window_->children().begin(); 130 for (aura::Window::Windows::const_iterator it = window_->children().begin();
129 it != window_->children().end(); ++it) { 131 it != window_->children().end(); ++it) {
130 wm::GetWindowState(*it)->OnWMEvent(event); 132 wm::GetWindowState(*it)->OnWMEvent(event);
131 } 133 }
132 } 134 }
133 135
134 } // namespace ash 136 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698