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_base.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/browser/accessibility/browser_accessibility_manager.h" | 8 #include "content/browser/accessibility/browser_accessibility_manager.h" |
9 #include "content/browser/gpu/gpu_data_manager_impl.h" | 9 #include "content/browser/gpu/gpu_data_manager_impl.h" |
10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" | 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 } | 394 } |
395 | 395 |
396 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { | 396 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { |
397 gfx::NativeView view = GetNativeView(); | 397 gfx::NativeView view = GetNativeView(); |
398 gfx::Display display = | 398 gfx::Display display = |
399 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view); | 399 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view); |
400 return gfx::ToCeiledSize(gfx::ScaleSize(GetRequestedRendererSize(), | 400 return gfx::ToCeiledSize(gfx::ScaleSize(GetRequestedRendererSize(), |
401 display.device_scale_factor())); | 401 display.device_scale_factor())); |
402 } | 402 } |
403 | 403 |
404 float RenderWidgetHostViewBase::GetOverdrawBottomHeight() const { | 404 float RenderWidgetHostViewBase::GetTopControlsLayoutHeight() const { |
405 return 0.f; | 405 return 0.f; |
406 } | 406 } |
407 | 407 |
408 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, | 408 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, |
409 size_t offset, | 409 size_t offset, |
410 const gfx::Range& range) { | 410 const gfx::Range& range) { |
411 selection_text_ = text; | 411 selection_text_ = text; |
412 selection_text_offset_ = offset; | 412 selection_text_offset_ = offset; |
413 selection_range_.set_start(range.start()); | 413 selection_range_.set_start(range.start()); |
414 selection_range_.set_end(range.end()); | 414 selection_range_.set_end(range.end()); |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 ? blink::WebScreenOrientationPortraitPrimary | 663 ? blink::WebScreenOrientationPortraitPrimary |
664 : blink::WebScreenOrientationPortraitSecondary; | 664 : blink::WebScreenOrientationPortraitSecondary; |
665 } | 665 } |
666 | 666 |
667 return primary_landscape_angle == angle | 667 return primary_landscape_angle == angle |
668 ? blink::WebScreenOrientationLandscapePrimary | 668 ? blink::WebScreenOrientationLandscapePrimary |
669 : blink::WebScreenOrientationLandscapeSecondary; | 669 : blink::WebScreenOrientationLandscapeSecondary; |
670 } | 670 } |
671 | 671 |
672 } // namespace content | 672 } // namespace content |
OLD | NEW |