| 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 } | 399 } |
| 400 | 400 |
| 401 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { | 401 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { |
| 402 gfx::NativeView view = GetNativeView(); | 402 gfx::NativeView view = GetNativeView(); |
| 403 gfx::Display display = | 403 gfx::Display display = |
| 404 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view); | 404 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view); |
| 405 return gfx::ToCeiledSize(gfx::ScaleSize(GetRequestedRendererSize(), | 405 return gfx::ToCeiledSize(gfx::ScaleSize(GetRequestedRendererSize(), |
| 406 display.device_scale_factor())); | 406 display.device_scale_factor())); |
| 407 } | 407 } |
| 408 | 408 |
| 409 float RenderWidgetHostViewBase::GetTopControlsLayoutHeight() const { | 409 bool RenderWidgetHostViewBase::GetTopControlsShrinkBlinkSize() const { |
| 410 return false; |
| 411 } |
| 412 |
| 413 float RenderWidgetHostViewBase::GetTopControlsHeight() const { |
| 410 return 0.f; | 414 return 0.f; |
| 411 } | 415 } |
| 412 | 416 |
| 413 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, | 417 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, |
| 414 size_t offset, | 418 size_t offset, |
| 415 const gfx::Range& range) { | 419 const gfx::Range& range) { |
| 416 selection_text_ = text; | 420 selection_text_ = text; |
| 417 selection_text_offset_ = offset; | 421 selection_text_offset_ = offset; |
| 418 selection_range_.set_start(range.start()); | 422 selection_range_.set_start(range.start()); |
| 419 selection_range_.set_end(range.end()); | 423 selection_range_.set_end(range.end()); |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 ? blink::WebScreenOrientationPortraitPrimary | 689 ? blink::WebScreenOrientationPortraitPrimary |
| 686 : blink::WebScreenOrientationPortraitSecondary; | 690 : blink::WebScreenOrientationPortraitSecondary; |
| 687 } | 691 } |
| 688 | 692 |
| 689 return primary_landscape_angle == angle | 693 return primary_landscape_angle == angle |
| 690 ? blink::WebScreenOrientationLandscapePrimary | 694 ? blink::WebScreenOrientationLandscapePrimary |
| 691 : blink::WebScreenOrientationLandscapeSecondary; | 695 : blink::WebScreenOrientationLandscapeSecondary; |
| 692 } | 696 } |
| 693 | 697 |
| 694 } // namespace content | 698 } // namespace content |
| OLD | NEW |