| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 } | 365 } |
| 366 | 366 |
| 367 // Whether forwarded WebInputEvents should be dropped. | 367 // Whether forwarded WebInputEvents should be dropped. |
| 368 bool ShouldDropInputEvents() const; | 368 bool ShouldDropInputEvents() const; |
| 369 | 369 |
| 370 bool has_touch_handler() const { return has_touch_handler_; } | 370 bool has_touch_handler() const { return has_touch_handler_; } |
| 371 | 371 |
| 372 // Set the RenderView background transparency. | 372 // Set the RenderView background transparency. |
| 373 void SetBackgroundOpaque(bool opaque); | 373 void SetBackgroundOpaque(bool opaque); |
| 374 | 374 |
| 375 // Set the RenderView background color. |
| 376 void SetBackgroundColor(SkColor color); |
| 377 |
| 375 // Notifies the renderer that the next key event is bound to one or more | 378 // Notifies the renderer that the next key event is bound to one or more |
| 376 // pre-defined edit commands | 379 // pre-defined edit commands |
| 377 void SetEditCommandsForNextKeyEvent( | 380 void SetEditCommandsForNextKeyEvent( |
| 378 const std::vector<EditCommand>& commands); | 381 const std::vector<EditCommand>& commands); |
| 379 | 382 |
| 380 // Executes the edit command. | 383 // Executes the edit command. |
| 381 void ExecuteEditCommand(const std::string& command, | 384 void ExecuteEditCommand(const std::string& command, |
| 382 const std::string& value); | 385 const std::string& value); |
| 383 | 386 |
| 384 // Tells the renderer to scroll the currently focused node into rect only if | 387 // Tells the renderer to scroll the currently focused node into rect only if |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; | 845 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; |
| 843 | 846 |
| 844 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 847 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 845 | 848 |
| 846 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 849 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 847 }; | 850 }; |
| 848 | 851 |
| 849 } // namespace content | 852 } // namespace content |
| 850 | 853 |
| 851 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 854 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |