| 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
| 9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
| 10 #endif | 10 #endif |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // should use the RenderWidgetHostViewPort interface. | 40 // should use the RenderWidgetHostViewPort interface. |
| 41 // | 41 // |
| 42 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. | 42 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. |
| 43 class CONTENT_EXPORT RenderWidgetHostViewBase | 43 class CONTENT_EXPORT RenderWidgetHostViewBase |
| 44 : public RenderWidgetHostViewPort { | 44 : public RenderWidgetHostViewPort { |
| 45 public: | 45 public: |
| 46 virtual ~RenderWidgetHostViewBase(); | 46 virtual ~RenderWidgetHostViewBase(); |
| 47 | 47 |
| 48 // RenderWidgetHostViewPort implementation. | 48 // RenderWidgetHostViewPort implementation. |
| 49 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 49 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 50 virtual void SelectionChanged(const string16& text, | 50 virtual void SelectionChanged(const base::string16& text, |
| 51 size_t offset, | 51 size_t offset, |
| 52 const gfx::Range& range) OVERRIDE; | 52 const gfx::Range& range) OVERRIDE; |
| 53 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 53 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
| 54 virtual const SkBitmap& GetBackground() OVERRIDE; | 54 virtual const SkBitmap& GetBackground() OVERRIDE; |
| 55 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; | 55 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; |
| 56 virtual float GetOverdrawBottomHeight() const OVERRIDE; | 56 virtual float GetOverdrawBottomHeight() const OVERRIDE; |
| 57 virtual bool IsShowingContextMenu() const OVERRIDE; | 57 virtual bool IsShowingContextMenu() const OVERRIDE; |
| 58 virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE; | 58 virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE; |
| 59 virtual string16 GetSelectedText() const OVERRIDE; | 59 virtual base::string16 GetSelectedText() const OVERRIDE; |
| 60 virtual bool IsMouseLocked() OVERRIDE; | 60 virtual bool IsMouseLocked() OVERRIDE; |
| 61 virtual void UnhandledWheelEvent( | 61 virtual void UnhandledWheelEvent( |
| 62 const blink::WebMouseWheelEvent& event) OVERRIDE; | 62 const blink::WebMouseWheelEvent& event) OVERRIDE; |
| 63 virtual InputEventAckState FilterInputEvent( | 63 virtual InputEventAckState FilterInputEvent( |
| 64 const blink::WebInputEvent& input_event) OVERRIDE; | 64 const blink::WebInputEvent& input_event) OVERRIDE; |
| 65 virtual void OnSetNeedsFlushInput() OVERRIDE; | 65 virtual void OnSetNeedsFlushInput() OVERRIDE; |
| 66 virtual void OnDidFlushInput() OVERRIDE; | 66 virtual void OnDidFlushInput() OVERRIDE; |
| 67 virtual void GestureEventAck(int gesture_event_type, | 67 virtual void GestureEventAck(int gesture_event_type, |
| 68 InputEventAckState ack_result) OVERRIDE; | 68 InputEventAckState ack_result) OVERRIDE; |
| 69 virtual void SetPopupType(blink::WebPopupType popup_type) OVERRIDE; | 69 virtual void SetPopupType(blink::WebPopupType popup_type) OVERRIDE; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // are still generated. However, the position they report is the last known | 133 // are still generated. However, the position they report is the last known |
| 134 // mouse position just as mouse lock was entered; the movement they report | 134 // mouse position just as mouse lock was entered; the movement they report |
| 135 // indicates what the change in position of the mouse would be had it not been | 135 // indicates what the change in position of the mouse would be had it not been |
| 136 // locked. | 136 // locked. |
| 137 bool mouse_locked_; | 137 bool mouse_locked_; |
| 138 | 138 |
| 139 // Whether we are showing a context menu. | 139 // Whether we are showing a context menu. |
| 140 bool showing_context_menu_; | 140 bool showing_context_menu_; |
| 141 | 141 |
| 142 // A buffer containing the text inside and around the current selection range. | 142 // A buffer containing the text inside and around the current selection range. |
| 143 string16 selection_text_; | 143 base::string16 selection_text_; |
| 144 | 144 |
| 145 // The offset of the text stored in |selection_text_| relative to the start of | 145 // The offset of the text stored in |selection_text_| relative to the start of |
| 146 // the web page. | 146 // the web page. |
| 147 size_t selection_text_offset_; | 147 size_t selection_text_offset_; |
| 148 | 148 |
| 149 // The current selection range relative to the start of the web page. | 149 // The current selection range relative to the start of the web page. |
| 150 gfx::Range selection_range_; | 150 gfx::Range selection_range_; |
| 151 | 151 |
| 152 protected: | 152 protected: |
| 153 // The scale factor of the display the renderer is currently on. | 153 // The scale factor of the display the renderer is currently on. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 164 uint32 renderer_frame_number_; | 164 uint32 renderer_frame_number_; |
| 165 | 165 |
| 166 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 166 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
| 167 | 167 |
| 168 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 168 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace content | 171 } // namespace content |
| 172 | 172 |
| 173 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 173 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |