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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 299443003: Restore resize throttling on Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, test fix Created 6 years, 7 months 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 } 391 }
392 392
393 bool RenderWidgetHostViewBase::GetBackgroundOpaque() { 393 bool RenderWidgetHostViewBase::GetBackgroundOpaque() {
394 return background_opaque_; 394 return background_opaque_;
395 } 395 }
396 396
397 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { 397 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const {
398 gfx::NativeView view = GetNativeView(); 398 gfx::NativeView view = GetNativeView();
399 gfx::Display display = 399 gfx::Display display =
400 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view); 400 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view);
401 return gfx::ToCeiledSize(gfx::ScaleSize(GetViewBounds().size(), 401 return gfx::ToCeiledSize(gfx::ScaleSize(GetRequestedRendererSize(),
402 display.device_scale_factor())); 402 display.device_scale_factor()));
403 } 403 }
404 404
405 float RenderWidgetHostViewBase::GetOverdrawBottomHeight() const { 405 float RenderWidgetHostViewBase::GetOverdrawBottomHeight() const {
406 return 0.f; 406 return 0.f;
407 } 407 }
408 408
409 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, 409 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text,
410 size_t offset, 410 size_t offset,
411 const gfx::Range& range) { 411 const gfx::Range& range) {
412 selection_text_ = text; 412 selection_text_ = text;
413 selection_text_offset_ = offset; 413 selection_text_offset_ = offset;
414 selection_range_.set_start(range.start()); 414 selection_range_.set_start(range.start());
415 selection_range_.set_end(range.end()); 415 selection_range_.set_end(range.end());
416 } 416 }
417 417
418 gfx::Size RenderWidgetHostViewBase::GetRequestedRendererSize() const {
419 return GetViewBounds().size();
420 }
421
418 ui::TextInputClient* RenderWidgetHostViewBase::GetTextInputClient() { 422 ui::TextInputClient* RenderWidgetHostViewBase::GetTextInputClient() {
419 NOTREACHED(); 423 NOTREACHED();
420 return NULL; 424 return NULL;
421 } 425 }
422 426
423 bool RenderWidgetHostViewBase::IsShowingContextMenu() const { 427 bool RenderWidgetHostViewBase::IsShowingContextMenu() const {
424 return showing_context_menu_; 428 return showing_context_menu_;
425 } 429 }
426 430
427 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) { 431 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 602
599 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { 603 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const {
600 return GetViewBounds().size(); 604 return GetViewBounds().size();
601 } 605 }
602 606
603 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) { 607 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) {
604 NOTIMPLEMENTED(); 608 NOTIMPLEMENTED();
605 } 609 }
606 610
607 } // namespace content 611 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698