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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 // Helper function to set keyboard focus to the main window. | 493 // Helper function to set keyboard focus to the main window. |
494 void SetKeyboardFocus(); | 494 void SetKeyboardFocus(); |
495 | 495 |
496 RenderFrameHostImpl* GetFocusedFrame(); | 496 RenderFrameHostImpl* GetFocusedFrame(); |
497 | 497 |
498 // Returns true if the |event| passed in can be forwarded to the renderer. | 498 // Returns true if the |event| passed in can be forwarded to the renderer. |
499 bool CanRendererHandleEvent(const ui::MouseEvent* event, | 499 bool CanRendererHandleEvent(const ui::MouseEvent* event, |
500 bool mouse_locked, | 500 bool mouse_locked, |
501 bool selection_popup); | 501 bool selection_popup); |
502 | 502 |
| 503 // Called when the parent window bounds change. |
| 504 void HandleParentBoundsChanged(); |
| 505 |
503 // The model object. | 506 // The model object. |
504 RenderWidgetHostImpl* host_; | 507 RenderWidgetHostImpl* host_; |
505 | 508 |
506 aura::Window* window_; | 509 aura::Window* window_; |
507 | 510 |
508 scoped_ptr<DelegatedFrameHost> delegated_frame_host_; | 511 scoped_ptr<DelegatedFrameHost> delegated_frame_host_; |
509 | 512 |
510 scoped_ptr<WindowObserver> window_observer_; | 513 scoped_ptr<WindowObserver> window_observer_; |
511 | 514 |
512 // Are we in the process of closing? Tracked so fullscreen views can avoid | 515 // Are we in the process of closing? Tracked so fullscreen views can avoid |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 // compositing surface and showing the disambiguation popup. | 661 // compositing surface and showing the disambiguation popup. |
659 gfx::Vector2dF disambiguation_scroll_offset_; | 662 gfx::Vector2dF disambiguation_scroll_offset_; |
660 | 663 |
661 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 664 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
662 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 665 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
663 }; | 666 }; |
664 | 667 |
665 } // namespace content | 668 } // namespace content |
666 | 669 |
667 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 670 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |