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

Side by Side Diff: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc

Issue 2243573002: ARC: Show window title in launcher menu instead of app title (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h" 4 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h"
5 5
6 #include <string> 6 #include <string>
7 7
8 #include "ash/common/shelf/shelf_delegate.h" 8 #include "ash/common/shelf/shelf_delegate.h"
9 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" 9 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
10 #include "ash/common/wm/window_state.h" 10 #include "ash/common/wm/window_state.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool IsMinimized() const override { 127 bool IsMinimized() const override {
128 NOTREACHED(); 128 NOTREACHED();
129 return false; 129 return false;
130 } 130 }
131 131
132 bool IsFullscreen() const override { 132 bool IsFullscreen() const override {
133 NOTREACHED(); 133 NOTREACHED();
134 return false; 134 return false;
135 } 135 }
136 136
137 gfx::NativeWindow GetNativeWindow() const override { return nullptr; } 137 gfx::NativeWindow GetNativeWindow() const override {
138 return widget_ ? widget_->GetNativeWindow() : nullptr;
139 }
138 140
139 gfx::Rect GetRestoredBounds() const override { 141 gfx::Rect GetRestoredBounds() const override {
140 NOTREACHED(); 142 NOTREACHED();
141 return gfx::Rect(); 143 return gfx::Rect();
142 } 144 }
143 145
144 ui::WindowShowState GetRestoredState() const override { 146 ui::WindowShowState GetRestoredState() const override {
145 NOTREACHED(); 147 NOTREACHED();
146 return ui::SHOW_STATE_NORMAL; 148 return ui::SHOW_STATE_NORMAL;
147 } 149 }
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 if (orientation_lock == arc::mojom::OrientationLock::CURRENT) { 602 if (orientation_lock == arc::mojom::OrientationLock::CURRENT) {
601 // Resolve the orientation when it first resolved. 603 // Resolve the orientation when it first resolved.
602 orientation_lock = GetCurrentOrientation(); 604 orientation_lock = GetCurrentOrientation();
603 app_window->set_requested_orientation_lock(orientation_lock); 605 app_window->set_requested_orientation_lock(orientation_lock);
604 } 606 }
605 607
606 ash::Shell* shell = ash::Shell::GetInstance(); 608 ash::Shell* shell = ash::Shell::GetInstance();
607 shell->screen_orientation_controller()->LockOrientationForWindow( 609 shell->screen_orientation_controller()->LockOrientationForWindow(
608 window, BlinkOrientationLockFromMojom(orientation_lock)); 610 window, BlinkOrientationLockFromMojom(orientation_lock));
609 } 611 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698