OLD | NEW |
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 "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_view.h" | 9 #include "content/public/browser/render_widget_host_view.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 } | 388 } |
389 | 389 |
390 gfx::Size NativeAppWindowViews::GetContentMaximumSize() const { | 390 gfx::Size NativeAppWindowViews::GetContentMaximumSize() const { |
391 return size_constraints_.GetMaximumSize(); | 391 return size_constraints_.GetMaximumSize(); |
392 } | 392 } |
393 | 393 |
394 void NativeAppWindowViews::SetContentSizeConstraints( | 394 void NativeAppWindowViews::SetContentSizeConstraints( |
395 const gfx::Size& min_size, const gfx::Size& max_size) { | 395 const gfx::Size& min_size, const gfx::Size& max_size) { |
396 size_constraints_.set_minimum_size(min_size); | 396 size_constraints_.set_minimum_size(min_size); |
397 size_constraints_.set_maximum_size(max_size); | 397 size_constraints_.set_maximum_size(max_size); |
| 398 widget_->OnSizeConstraintsChanged(); |
398 } | 399 } |
399 | 400 |
400 bool NativeAppWindowViews::CanHaveAlphaEnabled() const { | 401 bool NativeAppWindowViews::CanHaveAlphaEnabled() const { |
401 return widget_->IsTranslucentWindowOpacitySupported(); | 402 return widget_->IsTranslucentWindowOpacitySupported(); |
402 } | 403 } |
403 | 404 |
404 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) { | 405 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) { |
405 widget_->SetVisibleOnAllWorkspaces(always_visible); | 406 widget_->SetVisibleOnAllWorkspaces(always_visible); |
406 } | 407 } |
407 | 408 |
408 } // namespace apps | 409 } // namespace apps |
OLD | NEW |