| 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 <string> | 10 #include <string> |
| 10 #include <vector> | 11 #include <vector> |
| 11 | 12 |
| 12 #include "base/callback.h" | 13 #include "base/callback.h" |
| 13 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 16 #include "base/process_util.h" | 17 #include "base/process_util.h" |
| 17 #include "base/property_bag.h" | 18 #include "base/property_bag.h" |
| 18 #include "base/string16.h" | 19 #include "base/string16.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // RenderWidgetHost implementation. | 72 // RenderWidgetHost implementation. |
| 72 virtual void Undo() OVERRIDE; | 73 virtual void Undo() OVERRIDE; |
| 73 virtual void Redo() OVERRIDE; | 74 virtual void Redo() OVERRIDE; |
| 74 virtual void Cut() OVERRIDE; | 75 virtual void Cut() OVERRIDE; |
| 75 virtual void Copy() OVERRIDE; | 76 virtual void Copy() OVERRIDE; |
| 76 virtual void CopyToFindPboard() OVERRIDE; | 77 virtual void CopyToFindPboard() OVERRIDE; |
| 77 virtual void Paste() OVERRIDE; | 78 virtual void Paste() OVERRIDE; |
| 78 virtual void PasteAndMatchStyle() OVERRIDE; | 79 virtual void PasteAndMatchStyle() OVERRIDE; |
| 79 virtual void Delete() OVERRIDE; | 80 virtual void Delete() OVERRIDE; |
| 80 virtual void SelectAll() OVERRIDE; | 81 virtual void SelectAll() OVERRIDE; |
| 82 virtual void SpeakSelection() OVERRIDE; |
| 81 virtual void UpdateTextDirection(WebKit::WebTextDirection direction) OVERRIDE; | 83 virtual void UpdateTextDirection(WebKit::WebTextDirection direction) OVERRIDE; |
| 82 virtual void NotifyTextDirection() OVERRIDE; | 84 virtual void NotifyTextDirection() OVERRIDE; |
| 83 virtual void Blur() OVERRIDE; | 85 virtual void Blur() OVERRIDE; |
| 84 virtual void CopyFromBackingStore( | 86 virtual void CopyFromBackingStore( |
| 85 const gfx::Rect& src_rect, | 87 const gfx::Rect& src_rect, |
| 86 const gfx::Size& accelerated_dst_size, | 88 const gfx::Size& accelerated_dst_size, |
| 87 const base::Callback<void(bool)>& callback, | 89 const base::Callback<void(bool)>& callback, |
| 88 skia::PlatformCanvas* output) OVERRIDE; | 90 skia::PlatformCanvas* output) OVERRIDE; |
| 89 #if defined(TOOLKIT_GTK) | 91 #if defined(TOOLKIT_GTK) |
| 90 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, | 92 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 void OnAcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 529 void OnAcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
| 528 int32 width, | 530 int32 width, |
| 529 int32 height, | 531 int32 height, |
| 530 uint64 mach_port); | 532 uint64 mach_port); |
| 531 void OnAcceleratedSurfaceSetTransportDIB(gfx::PluginWindowHandle window, | 533 void OnAcceleratedSurfaceSetTransportDIB(gfx::PluginWindowHandle window, |
| 532 int32 width, | 534 int32 width, |
| 533 int32 height, | 535 int32 height, |
| 534 TransportDIB::Handle transport_dib); | 536 TransportDIB::Handle transport_dib); |
| 535 void OnAcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window, | 537 void OnAcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window, |
| 536 uint64 surface_handle); | 538 uint64 surface_handle); |
| 539 void OnMsgSpeakText(const string16& text); |
| 537 #endif | 540 #endif |
| 538 #if defined(TOOLKIT_GTK) | 541 #if defined(TOOLKIT_GTK) |
| 539 void OnMsgCreatePluginContainer(gfx::PluginWindowHandle id); | 542 void OnMsgCreatePluginContainer(gfx::PluginWindowHandle id); |
| 540 void OnMsgDestroyPluginContainer(gfx::PluginWindowHandle id); | 543 void OnMsgDestroyPluginContainer(gfx::PluginWindowHandle id); |
| 541 #endif | 544 #endif |
| 542 | 545 |
| 543 // Called (either immediately or asynchronously) after we're done with our | 546 // Called (either immediately or asynchronously) after we're done with our |
| 544 // BackingStore and can send an ACK to the renderer so it can paint onto it | 547 // BackingStore and can send an ACK to the renderer so it can paint onto it |
| 545 // again. | 548 // again. |
| 546 void DidUpdateBackingStore(const ViewHostMsg_UpdateRect_Params& params, | 549 void DidUpdateBackingStore(const ViewHostMsg_UpdateRect_Params& params, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 scoped_ptr<TapSuppressionController> tap_suppression_controller_; | 770 scoped_ptr<TapSuppressionController> tap_suppression_controller_; |
| 768 | 771 |
| 769 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; | 772 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; |
| 770 | 773 |
| 771 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 774 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 772 }; | 775 }; |
| 773 | 776 |
| 774 } // namespace content | 777 } // namespace content |
| 775 | 778 |
| 776 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 779 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |