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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 // on Windows if the context menu is being displayed in response to a long | 337 // on Windows if the context menu is being displayed in response to a long |
338 // press gesture. On Windows we should be consistent like other apps and | 338 // press gesture. On Windows we should be consistent like other apps and |
339 // display the menu when the touch is released. | 339 // display the menu when the touch is released. |
340 bool OnShowContextMenu(const ContextMenuParams& params); | 340 bool OnShowContextMenu(const ContextMenuParams& params); |
341 | 341 |
342 // Used in tests to set a mock client for touch selection controller. It will | 342 // Used in tests to set a mock client for touch selection controller. It will |
343 // create a new touch selection controller for the new client. | 343 // create a new touch selection controller for the new client. |
344 void SetSelectionControllerClientForTest( | 344 void SetSelectionControllerClientForTest( |
345 scoped_ptr<TouchSelectionControllerClientAura> client); | 345 scoped_ptr<TouchSelectionControllerClientAura> client); |
346 | 346 |
| 347 // Exposed for tests. |
| 348 DelegatedFrameHost* GetDelegatedFrameHostForTesting() const { |
| 349 return GetDelegatedFrameHost(); |
| 350 } |
| 351 |
347 protected: | 352 protected: |
348 ~RenderWidgetHostViewAura() override; | 353 ~RenderWidgetHostViewAura() override; |
349 | 354 |
350 // Exposed for tests. | 355 // Exposed for tests. |
351 aura::Window* window() { return window_; } | 356 aura::Window* window() { return window_; } |
352 | 357 |
353 DelegatedFrameHost* GetDelegatedFrameHost() const { | 358 DelegatedFrameHost* GetDelegatedFrameHost() const { |
354 return delegated_frame_host_.get(); | 359 return delegated_frame_host_.get(); |
355 } | 360 } |
356 const ui::MotionEventAura& pointer_state() const { return pointer_state_; } | 361 const ui::MotionEventAura& pointer_state() const { return pointer_state_; } |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 float device_scale_factor_; | 706 float device_scale_factor_; |
702 | 707 |
703 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 708 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
704 | 709 |
705 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 710 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
706 }; | 711 }; |
707 | 712 |
708 } // namespace content | 713 } // namespace content |
709 | 714 |
710 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 715 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |