| OLD | NEW |
| 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 "content/browser/renderer_host/render_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 2881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2892 | 2892 |
| 2893 bool RenderWidgetHostViewAura::DelegatedFrameHostIsVisible() const { | 2893 bool RenderWidgetHostViewAura::DelegatedFrameHostIsVisible() const { |
| 2894 return !host_->is_hidden(); | 2894 return !host_->is_hidden(); |
| 2895 } | 2895 } |
| 2896 | 2896 |
| 2897 SkColor RenderWidgetHostViewAura::DelegatedFrameHostGetGutterColor( | 2897 SkColor RenderWidgetHostViewAura::DelegatedFrameHostGetGutterColor( |
| 2898 SkColor color) const { | 2898 SkColor color) const { |
| 2899 // When making an element on the page fullscreen the element's background | 2899 // When making an element on the page fullscreen the element's background |
| 2900 // may not match the page's, so use black as the gutter color to avoid | 2900 // may not match the page's, so use black as the gutter color to avoid |
| 2901 // flashes of brighter colors during the transition. | 2901 // flashes of brighter colors during the transition. |
| 2902 if (host_->delegate() && host_->delegate()->IsFullscreenForCurrentTab(host_)) | 2902 if (host_->delegate() && host_->delegate()->IsFullscreenForCurrentTab()) |
| 2903 return SK_ColorBLACK; | 2903 return SK_ColorBLACK; |
| 2904 return color; | 2904 return color; |
| 2905 } | 2905 } |
| 2906 | 2906 |
| 2907 gfx::Size RenderWidgetHostViewAura::DelegatedFrameHostDesiredSizeInDIP() const { | 2907 gfx::Size RenderWidgetHostViewAura::DelegatedFrameHostDesiredSizeInDIP() const { |
| 2908 return window_->bounds().size(); | 2908 return window_->bounds().size(); |
| 2909 } | 2909 } |
| 2910 | 2910 |
| 2911 bool RenderWidgetHostViewAura::DelegatedFrameCanCreateResizeLock() const { | 2911 bool RenderWidgetHostViewAura::DelegatedFrameCanCreateResizeLock() const { |
| 2912 #if !defined(OS_CHROMEOS) | 2912 #if !defined(OS_CHROMEOS) |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2991 | 2991 |
| 2992 //////////////////////////////////////////////////////////////////////////////// | 2992 //////////////////////////////////////////////////////////////////////////////// |
| 2993 // RenderWidgetHostViewBase, public: | 2993 // RenderWidgetHostViewBase, public: |
| 2994 | 2994 |
| 2995 // static | 2995 // static |
| 2996 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { | 2996 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 2997 GetScreenInfoForWindow(results, NULL); | 2997 GetScreenInfoForWindow(results, NULL); |
| 2998 } | 2998 } |
| 2999 | 2999 |
| 3000 } // namespace content | 3000 } // namespace content |
| OLD | NEW |