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

Side by Side Diff: ash/wm/dock/docked_window_layout_manager.cc

Issue 25740005: Observe keyboard notifications in docked layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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 | « ash/root_window_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/dock/docked_window_layout_manager.h" 5 #include "ash/wm/dock/docked_window_layout_manager.h"
6 6
7 #include "ash/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "ash/launcher/launcher.h" 8 #include "ash/launcher/launcher.h"
9 #include "ash/screen_ash.h" 9 #include "ash/screen_ash.h"
10 #include "ash/shelf/shelf_layout_manager.h" 10 #include "ash/shelf/shelf_layout_manager.h"
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 last_active_window_ = active_window; 866 last_active_window_ = active_window;
867 } 867 }
868 868
869 //////////////////////////////////////////////////////////////////////////////// 869 ////////////////////////////////////////////////////////////////////////////////
870 // keyboard::KeyboardControllerObserver implementation: 870 // keyboard::KeyboardControllerObserver implementation:
871 871
872 void DockedWindowLayoutManager::OnKeyboardBoundsChanging( 872 void DockedWindowLayoutManager::OnKeyboardBoundsChanging(
873 const gfx::Rect& keyboard_bounds) { 873 const gfx::Rect& keyboard_bounds) {
874 // This bounds change will have caused a change to the Shelf which does not 874 // This bounds change will have caused a change to the Shelf which does not
875 // propagate automatically to this class, so manually recalculate bounds. 875 // propagate automatically to this class, so manually recalculate bounds.
876 Relayout();
876 UpdateDockBounds(); 877 UpdateDockBounds();
877 } 878 }
878 879
879 } // namespace internal 880 } // namespace internal
880 } // namespace ash 881 } // namespace ash
OLDNEW
« no previous file with comments | « ash/root_window_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698