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_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // Used in tests to set a mock client for touch selection controller. It will | 306 // Used in tests to set a mock client for touch selection controller. It will |
307 // create a new touch selection controller for the new client. | 307 // create a new touch selection controller for the new client. |
308 void SetSelectionControllerClientForTest( | 308 void SetSelectionControllerClientForTest( |
309 std::unique_ptr<TouchSelectionControllerClientAura> client); | 309 std::unique_ptr<TouchSelectionControllerClientAura> client); |
310 | 310 |
311 // Exposed for tests. | 311 // Exposed for tests. |
312 cc::SurfaceId SurfaceIdForTesting() const override; | 312 cc::SurfaceId SurfaceIdForTesting() const override; |
313 | 313 |
314 // RenderWidgetHostViewEventHandler::Delegate: | 314 // RenderWidgetHostViewEventHandler::Delegate: |
315 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override; | 315 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const override; |
316 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event, | 316 void ForwardKeyboardEventWithLatencyInfo(const NativeWebKeyboardEvent& event, |
317 bool* update_event) override; | 317 const ui::LatencyInfo& latency, |
| 318 bool* update_event) override; |
318 RenderFrameHostImpl* GetFocusedFrame(); | 319 RenderFrameHostImpl* GetFocusedFrame(); |
319 bool NeedsMouseCapture() override; | 320 bool NeedsMouseCapture() override; |
320 void SetTooltipsEnabled(bool enable) override; | 321 void SetTooltipsEnabled(bool enable) override; |
321 void ShowContextMenu(const ContextMenuParams& params) override; | 322 void ShowContextMenu(const ContextMenuParams& params) override; |
322 void Shutdown() override; | 323 void Shutdown() override; |
323 | 324 |
324 RenderWidgetHostViewEventHandler* event_handler() { | 325 RenderWidgetHostViewEventHandler* event_handler() { |
325 return event_handler_.get(); | 326 return event_handler_.get(); |
326 } | 327 } |
327 | 328 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 cc::LocalSurfaceId local_surface_id_; | 598 cc::LocalSurfaceId local_surface_id_; |
598 | 599 |
599 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 600 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
600 | 601 |
601 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 602 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
602 }; | 603 }; |
603 | 604 |
604 } // namespace content | 605 } // namespace content |
605 | 606 |
606 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 607 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |