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