OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/resources/returned_resource.h" | 9 #include "cc/resources/returned_resource.h" |
10 #include "cc/surfaces/surface_factory_client.h" | 10 #include "cc/surfaces/surface_factory_client.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 bool CanCopyToVideoFrame() const override; | 104 bool CanCopyToVideoFrame() const override; |
105 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 105 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
106 void OnSwapCompositorFrame(uint32 output_surface_id, | 106 void OnSwapCompositorFrame(uint32 output_surface_id, |
107 scoped_ptr<cc::CompositorFrame> frame) override; | 107 scoped_ptr<cc::CompositorFrame> frame) override; |
108 // Since the URL of content rendered by this class is not displayed in | 108 // Since the URL of content rendered by this class is not displayed in |
109 // the URL bar, this method does not need an implementation. | 109 // the URL bar, this method does not need an implementation. |
110 void ClearCompositorFrame() override {} | 110 void ClearCompositorFrame() override {} |
111 void GetScreenInfo(blink::WebScreenInfo* results) override; | 111 void GetScreenInfo(blink::WebScreenInfo* results) override; |
112 bool GetScreenColorProfile(std::vector<char>* color_profile) override; | 112 bool GetScreenColorProfile(std::vector<char>* color_profile) override; |
113 gfx::Rect GetBoundsInRootWindow() override; | 113 gfx::Rect GetBoundsInRootWindow() override; |
114 gfx::GLSurfaceHandle GetCompositingSurface() override; | |
115 #if defined(USE_AURA) | 114 #if defined(USE_AURA) |
116 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 115 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
117 InputEventAckState ack_result) override; | 116 InputEventAckState ack_result) override; |
118 #endif // defined(USE_AURA) | 117 #endif // defined(USE_AURA) |
119 bool LockMouse() override; | 118 bool LockMouse() override; |
120 void UnlockMouse() override; | 119 void UnlockMouse() override; |
121 uint32_t GetSurfaceIdNamespace() override; | 120 uint32_t GetSurfaceIdNamespace() override; |
122 void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 121 void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
123 void ProcessMouseEvent(const blink::WebMouseEvent& event) override; | 122 void ProcessMouseEvent(const blink::WebMouseEvent& event) override; |
124 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override; | 123 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 } | 197 } |
199 | 198 |
200 private: | 199 private: |
201 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 200 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
202 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 201 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
203 }; | 202 }; |
204 | 203 |
205 } // namespace content | 204 } // namespace content |
206 | 205 |
207 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 206 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
OLD | NEW |