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

Side by Side Diff: extensions/components/native_app_window/native_app_window_views.cc

Issue 2891043002: Revert of Remove WINDOW_TYPE_V1_PANEL AppWindow type (Closed)
Patch Set: Created 3 years, 7 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 | « extensions/components/native_app_window/native_app_window_views.h ('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 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 "extensions/components/native_app_window/native_app_window_views.h" 5 #include "extensions/components/native_app_window/native_app_window_views.h"
6 6
7 #include "base/threading/sequenced_worker_pool.h" 7 #include "base/threading/sequenced_worker_pool.h"
8 #include "content/public/browser/render_view_host.h" 8 #include "content/public/browser/render_view_host.h"
9 #include "content/public/browser/render_widget_host.h" 9 #include "content/public/browser/render_widget_host.h"
10 #include "content/public/browser/render_widget_host_view.h" 10 #include "content/public/browser/render_widget_host_view.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 bool NativeAppWindowViews::CanMinimize() const { 221 bool NativeAppWindowViews::CanMinimize() const {
222 return true; 222 return true;
223 } 223 }
224 224
225 base::string16 NativeAppWindowViews::GetWindowTitle() const { 225 base::string16 NativeAppWindowViews::GetWindowTitle() const {
226 return app_window_->GetTitle(); 226 return app_window_->GetTitle();
227 } 227 }
228 228
229 bool NativeAppWindowViews::ShouldShowWindowTitle() const { 229 bool NativeAppWindowViews::ShouldShowWindowTitle() const {
230 return false; 230 return app_window_->window_type() == AppWindow::WINDOW_TYPE_V1_PANEL;
231 }
232
233 bool NativeAppWindowViews::ShouldShowWindowIcon() const {
234 return app_window_->window_type() == AppWindow::WINDOW_TYPE_V1_PANEL;
231 } 235 }
232 236
233 void NativeAppWindowViews::SaveWindowPlacement(const gfx::Rect& bounds, 237 void NativeAppWindowViews::SaveWindowPlacement(const gfx::Rect& bounds,
234 ui::WindowShowState show_state) { 238 ui::WindowShowState show_state) {
235 views::WidgetDelegate::SaveWindowPlacement(bounds, show_state); 239 views::WidgetDelegate::SaveWindowPlacement(bounds, show_state);
236 app_window_->OnNativeWindowChanged(); 240 app_window_->OnNativeWindowChanged();
237 } 241 }
238 242
239 void NativeAppWindowViews::DeleteDelegate() { 243 void NativeAppWindowViews::DeleteDelegate() {
240 widget_->RemoveObserver(this); 244 widget_->RemoveObserver(this);
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 return widget_->IsTranslucentWindowOpacitySupported(); 435 return widget_->IsTranslucentWindowOpacitySupported();
432 } 436 }
433 437
434 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) { 438 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) {
435 widget_->SetVisibleOnAllWorkspaces(always_visible); 439 widget_->SetVisibleOnAllWorkspaces(always_visible);
436 } 440 }
437 441
438 void NativeAppWindowViews::SetActivateOnPointer(bool activate_on_pointer) {} 442 void NativeAppWindowViews::SetActivateOnPointer(bool activate_on_pointer) {}
439 443
440 } // namespace native_app_window 444 } // namespace native_app_window
OLDNEW
« no previous file with comments | « extensions/components/native_app_window/native_app_window_views.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698