| 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 14 matching lines...) Expand all Loading... |
| 25 namespace content { | 25 namespace content { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 // How many microseconds apart input events should be flushed. | 29 // How many microseconds apart input events should be flushed. |
| 30 const int kFlushInputRateInUs = 16666; | 30 const int kFlushInputRateInUs = 16666; |
| 31 | 31 |
| 32 } | 32 } |
| 33 | 33 |
| 34 RenderWidgetHostViewBase::RenderWidgetHostViewBase() | 34 RenderWidgetHostViewBase::RenderWidgetHostViewBase() |
| 35 : popup_type_(blink::WebPopupTypeNone), | 35 : is_fullscreen_(false), |
| 36 popup_type_(blink::WebPopupTypeNone), |
| 36 background_color_(SK_ColorWHITE), | 37 background_color_(SK_ColorWHITE), |
| 37 mouse_locked_(false), | 38 mouse_locked_(false), |
| 38 showing_context_menu_(false), | 39 showing_context_menu_(false), |
| 39 #if !defined(USE_AURA) | 40 #if !defined(USE_AURA) |
| 40 selection_text_offset_(0), | 41 selection_text_offset_(0), |
| 41 selection_range_(gfx::Range::InvalidRange()), | 42 selection_range_(gfx::Range::InvalidRange()), |
| 42 #endif | 43 #endif |
| 43 current_device_scale_factor_(0), | 44 current_device_scale_factor_(0), |
| 44 current_display_rotation_(display::Display::ROTATE_0), | 45 current_display_rotation_(display::Display::ROTATE_0), |
| 45 pinch_zoom_enabled_(content::IsPinchToZoomEnabled()), | |
| 46 text_input_manager_(nullptr), | 46 text_input_manager_(nullptr), |
| 47 renderer_frame_number_(0), | 47 renderer_frame_number_(0), |
| 48 weak_factory_(this) { | 48 weak_factory_(this) { |
| 49 } | 49 } |
| 50 | 50 |
| 51 RenderWidgetHostViewBase::~RenderWidgetHostViewBase() { | 51 RenderWidgetHostViewBase::~RenderWidgetHostViewBase() { |
| 52 DCHECK(!mouse_locked_); | 52 DCHECK(!mouse_locked_); |
| 53 // We call this here to guarantee that observers are notified before we go | 53 // 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 | 54 // away. However, some subclasses may wish to call this earlier in their |
| 55 // shutdown process, e.g. to force removal from | 55 // shutdown process, e.g. to force removal from |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 | 522 |
| 523 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 523 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
| 524 return false; | 524 return false; |
| 525 } | 525 } |
| 526 | 526 |
| 527 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 527 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
| 528 return cc::SurfaceId(); | 528 return cc::SurfaceId(); |
| 529 } | 529 } |
| 530 | 530 |
| 531 } // namespace content | 531 } // namespace content |
| OLD | NEW |