| 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 | 459 |
| 460 base::TimeDelta GetSyntheticScrollMessageInterval() const; | 460 base::TimeDelta GetSyntheticScrollMessageInterval() const; |
| 461 | 461 |
| 462 // Sets whether the overscroll controller should be enabled for this page. | 462 // Sets whether the overscroll controller should be enabled for this page. |
| 463 void SetOverscrollControllerEnabled(bool enabled); | 463 void SetOverscrollControllerEnabled(bool enabled); |
| 464 | 464 |
| 465 // Suppreses future char events until a keydown. See | 465 // Suppreses future char events until a keydown. See |
| 466 // suppress_next_char_events_. | 466 // suppress_next_char_events_. |
| 467 void SuppressNextCharEvents(); | 467 void SuppressNextCharEvents(); |
| 468 | 468 |
| 469 // Indicates whether the renderer drives the RenderWidgetHosts's size or the |
| 470 // other way around. |
| 471 bool should_auto_resize() { return should_auto_resize_; } |
| 472 |
| 469 protected: | 473 protected: |
| 470 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; | 474 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |
| 471 | 475 |
| 472 // Transmits the given input event. This is an internal helper for | 476 // Transmits the given input event. This is an internal helper for |
| 473 // |ForwardInputEvent()| and should not be used directly from elsewhere. | 477 // |ForwardInputEvent()| and should not be used directly from elsewhere. |
| 474 void SendInputEvent(const WebKit::WebInputEvent& input_event, | 478 void SendInputEvent(const WebKit::WebInputEvent& input_event, |
| 475 int event_size, bool is_keyboard_shortcut); | 479 int event_size, bool is_keyboard_shortcut); |
| 476 | 480 |
| 477 // Internal implementation of the public Forward*Event() methods. | 481 // Internal implementation of the public Forward*Event() methods. |
| 478 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, | 482 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 | 879 |
| 876 // List of callbacks for pending snapshot requests to the renderer. | 880 // List of callbacks for pending snapshot requests to the renderer. |
| 877 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 881 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
| 878 | 882 |
| 879 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 883 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 880 }; | 884 }; |
| 881 | 885 |
| 882 } // namespace content | 886 } // namespace content |
| 883 | 887 |
| 884 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 888 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |