| 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 | 448 |
| 449 // DelegatedFrameHostClient implementation. | 449 // DelegatedFrameHostClient implementation. |
| 450 ui::Compositor* GetCompositor() const override; | 450 ui::Compositor* GetCompositor() const override; |
| 451 ui::Layer* GetLayer() override; | 451 ui::Layer* GetLayer() override; |
| 452 RenderWidgetHostImpl* GetHost() override; | 452 RenderWidgetHostImpl* GetHost() override; |
| 453 bool IsVisible() override; | 453 bool IsVisible() override; |
| 454 scoped_ptr<ResizeLock> CreateResizeLock(bool defer_compositor_lock) override; | 454 scoped_ptr<ResizeLock> CreateResizeLock(bool defer_compositor_lock) override; |
| 455 gfx::Size DesiredFrameSize() override; | 455 gfx::Size DesiredFrameSize() override; |
| 456 float CurrentDeviceScaleFactor() override; | 456 float CurrentDeviceScaleFactor() override; |
| 457 gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override; | 457 gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override; |
| 458 void OnSendBeginFrame(const cc::BeginFrameArgs& args) override; |
| 458 | 459 |
| 459 // Detaches |this| from the input method object. | 460 // Detaches |this| from the input method object. |
| 460 void DetachFromInputMethod(); | 461 void DetachFromInputMethod(); |
| 461 | 462 |
| 462 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method | 463 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method |
| 463 // calls our keybindings handler against the event and send matched | 464 // calls our keybindings handler against the event and send matched |
| 464 // edit commands to renderer instead. | 465 // edit commands to renderer instead. |
| 465 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); | 466 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 466 | 467 |
| 467 // Dismisses a Web Popup on a mouse or touch press outside the popup and its | 468 // Dismisses a Web Popup on a mouse or touch press outside the popup and its |
| 468 // parent. | 469 // parent. |
| 469 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event); | 470 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event); |
| 470 | 471 |
| 471 // Converts |rect| from window coordinate to screen coordinate. | 472 // Converts |rect| from window coordinate to screen coordinate. |
| 472 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const; | 473 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const; |
| 473 | 474 |
| 474 // Converts |rect| from screen coordinate to window coordinate. | 475 // Converts |rect| from screen coordinate to window coordinate. |
| 475 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; | 476 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; |
| 476 | 477 |
| 477 // Helper function to set keyboard focus to the main window. | 478 // Helper function to set keyboard focus to the main window. |
| 478 void SetKeyboardFocus(); | 479 void SetKeyboardFocus(); |
| 479 | 480 |
| 481 // Called when RenderWidget want to start BeginFrame scheduling or stop. |
| 482 void OnSetNeedsBeginFrames(bool needs_begin_frames); |
| 483 |
| 480 RenderFrameHostImpl* GetFocusedFrame(); | 484 RenderFrameHostImpl* GetFocusedFrame(); |
| 481 | 485 |
| 482 // The model object. | 486 // The model object. |
| 483 RenderWidgetHostImpl* host_; | 487 RenderWidgetHostImpl* host_; |
| 484 | 488 |
| 485 aura::Window* window_; | 489 aura::Window* window_; |
| 486 | 490 |
| 487 scoped_ptr<DelegatedFrameHost> delegated_frame_host_; | 491 scoped_ptr<DelegatedFrameHost> delegated_frame_host_; |
| 488 | 492 |
| 489 scoped_ptr<WindowObserver> window_observer_; | 493 scoped_ptr<WindowObserver> window_observer_; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 // compositing surface and showing the disambiguation popup. | 628 // compositing surface and showing the disambiguation popup. |
| 625 gfx::Vector2dF disambiguation_scroll_offset_; | 629 gfx::Vector2dF disambiguation_scroll_offset_; |
| 626 | 630 |
| 627 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 631 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 628 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 632 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 629 }; | 633 }; |
| 630 | 634 |
| 631 } // namespace content | 635 } // namespace content |
| 632 | 636 |
| 633 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 637 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |