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

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

Issue 1203223002: [Experimental, WIP] Demo version of extracting WebView selection data from CompositorFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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 "base/profiler/scoped_tracker.h" 8 #include "base/profiler/scoped_tracker.h"
9 #include "content/browser/accessibility/browser_accessibility_manager.h" 9 #include "content/browser/accessibility/browser_accessibility_manager.h"
10 #include "content/browser/gpu/gpu_data_manager_impl.h" 10 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 : popup_type_(blink::WebPopupTypeNone), 369 : popup_type_(blink::WebPopupTypeNone),
370 background_color_(SK_ColorWHITE), 370 background_color_(SK_ColorWHITE),
371 mouse_locked_(false), 371 mouse_locked_(false),
372 showing_context_menu_(false), 372 showing_context_menu_(false),
373 selection_text_offset_(0), 373 selection_text_offset_(0),
374 selection_range_(gfx::Range::InvalidRange()), 374 selection_range_(gfx::Range::InvalidRange()),
375 current_device_scale_factor_(0), 375 current_device_scale_factor_(0),
376 current_display_rotation_(gfx::Display::ROTATE_0), 376 current_display_rotation_(gfx::Display::ROTATE_0),
377 pinch_zoom_enabled_(content::IsPinchToZoomEnabled()), 377 pinch_zoom_enabled_(content::IsPinchToZoomEnabled()),
378 renderer_frame_number_(0), 378 renderer_frame_number_(0),
379 focused_node_is_plugin_(false),
379 weak_factory_(this) { 380 weak_factory_(this) {
380 } 381 }
381 382
382 RenderWidgetHostViewBase::~RenderWidgetHostViewBase() { 383 RenderWidgetHostViewBase::~RenderWidgetHostViewBase() {
383 DCHECK(!mouse_locked_); 384 DCHECK(!mouse_locked_);
384 } 385 }
385 386
386 bool RenderWidgetHostViewBase::OnMessageReceived(const IPC::Message& msg){ 387 bool RenderWidgetHostViewBase::OnMessageReceived(const IPC::Message& msg){
387 return false; 388 return false;
388 } 389 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 gfx::AcceleratedWidget 514 gfx::AcceleratedWidget
514 RenderWidgetHostViewBase::AccessibilityGetAcceleratedWidget() { 515 RenderWidgetHostViewBase::AccessibilityGetAcceleratedWidget() {
515 return gfx::kNullAcceleratedWidget; 516 return gfx::kNullAcceleratedWidget;
516 } 517 }
517 518
518 gfx::NativeViewAccessible 519 gfx::NativeViewAccessible
519 RenderWidgetHostViewBase::AccessibilityGetNativeViewAccessible() { 520 RenderWidgetHostViewBase::AccessibilityGetNativeViewAccessible() {
520 return NULL; 521 return NULL;
521 } 522 }
522 523
524 void RenderWidgetHostViewBase::FocusedNodeChanged(bool is_editable_node,
525 bool is_plugin_node) {
526 focused_node_is_plugin_ = is_plugin_node;
527 }
528
523 void RenderWidgetHostViewBase::UpdateScreenInfo(gfx::NativeView view) { 529 void RenderWidgetHostViewBase::UpdateScreenInfo(gfx::NativeView view) {
524 RenderWidgetHostImpl* impl = NULL; 530 RenderWidgetHostImpl* impl = NULL;
525 if (GetRenderWidgetHost()) 531 if (GetRenderWidgetHost())
526 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); 532 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost());
527 533
528 if (impl) 534 if (impl)
529 impl->SendScreenRects(); 535 impl->SendScreenRects();
530 536
531 if (HasDisplayPropertyChanged(view) && impl) 537 if (HasDisplayPropertyChanged(view) && impl)
532 impl->NotifyScreenInfoChanged(); 538 impl->NotifyScreenInfoChanged();
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 } 701 }
696 702
697 void RenderWidgetHostViewBase::OnDidNavigateMainFrameToNewPage() { 703 void RenderWidgetHostViewBase::OnDidNavigateMainFrameToNewPage() {
698 } 704 }
699 705
700 uint32_t RenderWidgetHostViewBase::GetSurfaceIdNamespace() { 706 uint32_t RenderWidgetHostViewBase::GetSurfaceIdNamespace() {
701 return 0; 707 return 0;
702 } 708 }
703 709
704 } // namespace content 710 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698