Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 1442853005: Add IPC messages to transfer compositor protos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trying to remove CC_EXPORT... Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void RestartHangMonitorTimeout() override; 152 void RestartHangMonitorTimeout() override;
153 void SetIgnoreInputEvents(bool ignore_input_events) override; 153 void SetIgnoreInputEvents(bool ignore_input_events) override;
154 void WasResized() override; 154 void WasResized() override;
155 void AddKeyPressEventCallback(const KeyPressEventCallback& callback) override; 155 void AddKeyPressEventCallback(const KeyPressEventCallback& callback) override;
156 void RemoveKeyPressEventCallback( 156 void RemoveKeyPressEventCallback(
157 const KeyPressEventCallback& callback) override; 157 const KeyPressEventCallback& callback) override;
158 void AddMouseEventCallback(const MouseEventCallback& callback) override; 158 void AddMouseEventCallback(const MouseEventCallback& callback) override;
159 void RemoveMouseEventCallback(const MouseEventCallback& callback) override; 159 void RemoveMouseEventCallback(const MouseEventCallback& callback) override;
160 void GetWebScreenInfo(blink::WebScreenInfo* result) override; 160 void GetWebScreenInfo(blink::WebScreenInfo* result) override;
161 bool GetScreenColorProfile(std::vector<char>* color_profile) override; 161 bool GetScreenColorProfile(std::vector<char>* color_profile) override;
162 void HandleCompositorProto(const std::vector<uint8_t>& proto) override;
162 163
163 // Notification that the screen info has changed. 164 // Notification that the screen info has changed.
164 void NotifyScreenInfoChanged(); 165 void NotifyScreenInfoChanged();
165 166
166 // Forces redraw in the renderer and when the update reaches the browser 167 // Forces redraw in the renderer and when the update reaches the browser
167 // grabs snapshot from the compositor. Returns PNG-encoded snapshot. 168 // grabs snapshot from the compositor. Returns PNG-encoded snapshot.
168 using GetSnapshotFromBrowserCallback = 169 using GetSnapshotFromBrowserCallback =
169 base::Callback<void(const unsigned char*, size_t)>; 170 base::Callback<void(const unsigned char*, size_t)>;
170 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback); 171 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback);
171 172
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 void OnWindowlessPluginDummyWindowCreated( 583 void OnWindowlessPluginDummyWindowCreated(
583 gfx::NativeViewId dummy_activation_window); 584 gfx::NativeViewId dummy_activation_window);
584 void OnWindowlessPluginDummyWindowDestroyed( 585 void OnWindowlessPluginDummyWindowDestroyed(
585 gfx::NativeViewId dummy_activation_window); 586 gfx::NativeViewId dummy_activation_window);
586 #endif 587 #endif
587 void OnSelectionChanged(const base::string16& text, 588 void OnSelectionChanged(const base::string16& text,
588 size_t offset, 589 size_t offset,
589 const gfx::Range& range); 590 const gfx::Range& range);
590 void OnSelectionBoundsChanged( 591 void OnSelectionBoundsChanged(
591 const ViewHostMsg_SelectionBounds_Params& params); 592 const ViewHostMsg_SelectionBounds_Params& params);
593 void OnForwardCompositorProto(const std::vector<uint8_t>& proto);
592 594
593 // Called (either immediately or asynchronously) after we're done with our 595 // Called (either immediately or asynchronously) after we're done with our
594 // BackingStore and can send an ACK to the renderer so it can paint onto it 596 // BackingStore and can send an ACK to the renderer so it can paint onto it
595 // again. 597 // again.
596 void DidUpdateBackingStore(const ViewHostMsg_UpdateRect_Params& params, 598 void DidUpdateBackingStore(const ViewHostMsg_UpdateRect_Params& params,
597 const base::TimeTicks& paint_start); 599 const base::TimeTicks& paint_start);
598 600
599 // Give key press listeners a chance to handle this key press. This allow 601 // Give key press listeners a chance to handle this key press. This allow
600 // widgets that don't have focus to still handle key presses. 602 // widgets that don't have focus to still handle key presses.
601 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event); 603 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event);
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; 823 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_;
822 824
823 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 825 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
824 826
825 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 827 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
826 }; 828 };
827 829
828 } // namespace content 830 } // namespace content
829 831
830 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 832 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_delegate.h ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698