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

Side by Side Diff: ash/app_list/app_list_presenter_delegate.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/app_list/app_list_presenter_delegate.h" 5 #include "ash/app_list/app_list_presenter_delegate.h"
6 6
7 #include "ash/aura/wm_window_aura.h" 7 #include "ash/aura/wm_window_aura.h"
8 #include "ash/common/ash_switches.h" 8 #include "ash/common/ash_switches.h"
9 #include "ash/common/shelf/app_list_button.h" 9 #include "ash/common/shelf/app_list_button.h"
10 #include "ash/common/shelf/shelf_layout_manager.h" 10 #include "ash/common/shelf/shelf_layout_manager.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 //////////////////////////////////////////////////////////////////////////////// 323 ////////////////////////////////////////////////////////////////////////////////
324 // AppListPresenterDelegate, keyboard::KeyboardControllerObserver 324 // AppListPresenterDelegate, keyboard::KeyboardControllerObserver
325 // implementation: 325 // implementation:
326 326
327 void AppListPresenterDelegate::OnKeyboardBoundsChanging( 327 void AppListPresenterDelegate::OnKeyboardBoundsChanging(
328 const gfx::Rect& new_bounds) { 328 const gfx::Rect& new_bounds) {
329 UpdateBounds(); 329 UpdateBounds();
330 } 330 }
331 331
332 void AppListPresenterDelegate::OnKeyboardHidden() {}
333
332 //////////////////////////////////////////////////////////////////////////////// 334 ////////////////////////////////////////////////////////////////////////////////
333 // AppListPresenterDelegate, ShellObserver implementation: 335 // AppListPresenterDelegate, ShellObserver implementation:
334 void AppListPresenterDelegate::OnShelfAlignmentChanged(WmWindow* root_window) { 336 void AppListPresenterDelegate::OnShelfAlignmentChanged(WmWindow* root_window) {
335 if (view_) 337 if (view_)
336 view_->SetBubbleArrow(GetBubbleArrow(view_->GetWidget()->GetNativeView())); 338 view_->SetBubbleArrow(GetBubbleArrow(view_->GetWidget()->GetNativeView()));
337 } 339 }
338 340
339 void AppListPresenterDelegate::OnOverviewModeStarting() { 341 void AppListPresenterDelegate::OnOverviewModeStarting() {
340 if (is_visible_) 342 if (is_visible_)
341 presenter_->Dismiss(); 343 presenter_->Dismiss();
(...skipping 16 matching lines...) Expand all
358 } 360 }
359 361
360 //////////////////////////////////////////////////////////////////////////////// 362 ////////////////////////////////////////////////////////////////////////////////
361 // AppListPresenterDelegate, WmShelfObserver implementation: 363 // AppListPresenterDelegate, WmShelfObserver implementation:
362 364
363 void AppListPresenterDelegate::OnShelfIconPositionsChanged() { 365 void AppListPresenterDelegate::OnShelfIconPositionsChanged() {
364 UpdateBounds(); 366 UpdateBounds();
365 } 367 }
366 368
367 } // namespace ash 369 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698