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

Side by Side Diff: content/renderer/resizing_mode_selector.cc

Issue 68683009: Rewrite include paths for Blink public/ headers that have moved (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/resizing_mode_selector.h" 5 #include "content/renderer/resizing_mode_selector.h"
6 6
7 #include "content/common/view_messages.h" 7 #include "content/common/view_messages.h"
8 #include "content/renderer/render_thread_impl.h" 8 #include "content/renderer/render_thread_impl.h"
9 #include "content/renderer/render_widget.h" 9 #include "content/renderer/render_widget.h"
10 #include "third_party/WebKit/public/web/WebScreenInfo.h" 10 #include "third_party/WebKit/public/platform/WebScreenInfo.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 ResizingModeSelector::ResizingModeSelector() : is_synchronous_mode_(false) {} 14 ResizingModeSelector::ResizingModeSelector() : is_synchronous_mode_(false) {}
15 15
16 bool ResizingModeSelector::NeverUsesSynchronousResize() const { 16 bool ResizingModeSelector::NeverUsesSynchronousResize() const {
17 return !RenderThreadImpl::current() || // can be NULL when in unit tests 17 return !RenderThreadImpl::current() || // can be NULL when in unit tests
18 !RenderThreadImpl::current()->layout_test_mode(); 18 !RenderThreadImpl::current()->layout_test_mode();
19 } 19 }
20 20
21 bool ResizingModeSelector::ShouldAbortOnResize( 21 bool ResizingModeSelector::ShouldAbortOnResize(
22 RenderWidget* widget, 22 RenderWidget* widget,
23 const ViewMsg_Resize_Params& params) { 23 const ViewMsg_Resize_Params& params) {
24 return is_synchronous_mode_ && 24 return is_synchronous_mode_ &&
25 params.is_fullscreen == widget->is_fullscreen() && 25 params.is_fullscreen == widget->is_fullscreen() &&
26 params.screen_info.deviceScaleFactor == 26 params.screen_info.deviceScaleFactor ==
27 widget->screenInfo().deviceScaleFactor; 27 widget->screenInfo().deviceScaleFactor;
28 } 28 }
29 29
30 void ResizingModeSelector::set_is_synchronous_mode(bool mode) { 30 void ResizingModeSelector::set_is_synchronous_mode(bool mode) {
31 is_synchronous_mode_ = mode; 31 is_synchronous_mode_ = mode;
32 } 32 }
33 33
34 bool ResizingModeSelector::is_synchronous_mode() const { 34 bool ResizingModeSelector::is_synchronous_mode() const {
35 return is_synchronous_mode_; 35 return is_synchronous_mode_;
36 } 36 }
37 37
38 } // namespace content 38 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.cc ('k') | webkit/child/webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698