| 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 "build/build_config.h" | 8 #include "build/build_config.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 24 matching lines...) Expand all Loading... |
| 35 : popup_type_(blink::WebPopupTypeNone), | 35 : popup_type_(blink::WebPopupTypeNone), |
| 36 background_color_(SK_ColorWHITE), | 36 background_color_(SK_ColorWHITE), |
| 37 mouse_locked_(false), | 37 mouse_locked_(false), |
| 38 showing_context_menu_(false), | 38 showing_context_menu_(false), |
| 39 #if !defined(USE_AURA) | 39 #if !defined(USE_AURA) |
| 40 selection_text_offset_(0), | 40 selection_text_offset_(0), |
| 41 selection_range_(gfx::Range::InvalidRange()), | 41 selection_range_(gfx::Range::InvalidRange()), |
| 42 #endif | 42 #endif |
| 43 current_device_scale_factor_(0), | 43 current_device_scale_factor_(0), |
| 44 current_display_rotation_(display::Display::ROTATE_0), | 44 current_display_rotation_(display::Display::ROTATE_0), |
| 45 pinch_zoom_enabled_(content::IsPinchToZoomEnabled()), | |
| 46 text_input_manager_(nullptr), | 45 text_input_manager_(nullptr), |
| 47 renderer_frame_number_(0), | 46 renderer_frame_number_(0), |
| 48 weak_factory_(this) { | 47 weak_factory_(this) { |
| 49 } | 48 } |
| 50 | 49 |
| 51 RenderWidgetHostViewBase::~RenderWidgetHostViewBase() { | 50 RenderWidgetHostViewBase::~RenderWidgetHostViewBase() { |
| 52 DCHECK(!mouse_locked_); | 51 DCHECK(!mouse_locked_); |
| 53 // We call this here to guarantee that observers are notified before we go | 52 // We call this here to guarantee that observers are notified before we go |
| 54 // away. However, some subclasses may wish to call this earlier in their | 53 // away. However, some subclasses may wish to call this earlier in their |
| 55 // shutdown process, e.g. to force removal from | 54 // shutdown process, e.g. to force removal from |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 | 511 |
| 513 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 512 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
| 514 return false; | 513 return false; |
| 515 } | 514 } |
| 516 | 515 |
| 517 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 516 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
| 518 return cc::SurfaceId(); | 517 return cc::SurfaceId(); |
| 519 } | 518 } |
| 520 | 519 |
| 521 } // namespace content | 520 } // namespace content |
| OLD | NEW |