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

Side by Side Diff: apps/ui/views/native_app_window_views.cc

Issue 469993003: Add AppWindow.setVisibleOnAllWorkspaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase Created 6 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 | Annotate | Revision Log
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 "apps/ui/views/native_app_window_views.h" 5 #include "apps/ui/views/native_app_window_views.h"
6 6
7 #include "apps/app_window.h" 7 #include "apps/app_window.h"
8 #include "base/threading/sequenced_worker_pool.h" 8 #include "base/threading/sequenced_worker_pool.h"
9 #include "content/public/browser/render_view_host.h" 9 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/render_widget_host_view.h" 10 #include "content/public/browser/render_widget_host_view.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 void NativeAppWindowViews::SetContentSizeConstraints( 397 void NativeAppWindowViews::SetContentSizeConstraints(
398 const gfx::Size& min_size, const gfx::Size& max_size) { 398 const gfx::Size& min_size, const gfx::Size& max_size) {
399 size_constraints_.set_minimum_size(min_size); 399 size_constraints_.set_minimum_size(min_size);
400 size_constraints_.set_maximum_size(max_size); 400 size_constraints_.set_maximum_size(max_size);
401 } 401 }
402 402
403 bool NativeAppWindowViews::CanHaveAlphaEnabled() const { 403 bool NativeAppWindowViews::CanHaveAlphaEnabled() const {
404 return widget_->IsTranslucentWindowOpacitySupported(); 404 return widget_->IsTranslucentWindowOpacitySupported();
405 } 405 }
406 406
407 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) {
408 widget_->SetVisibleOnAllWorkspaces(always_visible);
409 }
410
407 } // namespace apps 411 } // namespace apps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698