| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 ui::TextInputClient* GetTextInputClient() override; | 151 ui::TextInputClient* GetTextInputClient() override; |
| 152 bool HasFocus() const override; | 152 bool HasFocus() const override; |
| 153 bool IsSurfaceAvailableForCopy() const override; | 153 bool IsSurfaceAvailableForCopy() const override; |
| 154 void Show() override; | 154 void Show() override; |
| 155 void Hide() override; | 155 void Hide() override; |
| 156 bool IsShowing() override; | 156 bool IsShowing() override; |
| 157 gfx::Rect GetViewBounds() const override; | 157 gfx::Rect GetViewBounds() const override; |
| 158 void SetBackgroundColor(SkColor color) override; | 158 void SetBackgroundColor(SkColor color) override; |
| 159 gfx::Size GetVisibleViewportSize() const override; | 159 gfx::Size GetVisibleViewportSize() const override; |
| 160 void SetInsets(const gfx::Insets& insets) override; | 160 void SetInsets(const gfx::Insets& insets) override; |
| 161 void SetWindowVisibility(bool visible); |
| 161 | 162 |
| 162 // Overridden from RenderWidgetHostViewBase: | 163 // Overridden from RenderWidgetHostViewBase: |
| 163 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 164 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 164 const gfx::Rect& pos) override; | 165 const gfx::Rect& pos) override; |
| 165 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 166 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
| 166 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; | 167 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; |
| 167 void Focus() override; | 168 void Focus() override; |
| 168 void Blur() override; | 169 void Blur() override; |
| 169 void UpdateCursor(const WebCursor& cursor) override; | 170 void UpdateCursor(const WebCursor& cursor) override; |
| 170 void SetIsLoading(bool is_loading) override; | 171 void SetIsLoading(bool is_loading) override; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 void OnCursorVisibilityChanged(bool is_visible) override; | 306 void OnCursorVisibilityChanged(bool is_visible) override; |
| 306 | 307 |
| 307 // Overridden from aura::client::FocusChangeObserver: | 308 // Overridden from aura::client::FocusChangeObserver: |
| 308 void OnWindowFocused(aura::Window* gained_focus, | 309 void OnWindowFocused(aura::Window* gained_focus, |
| 309 aura::Window* lost_focus) override; | 310 aura::Window* lost_focus) override; |
| 310 | 311 |
| 311 // Overridden from aura::WindowTreeHostObserver: | 312 // Overridden from aura::WindowTreeHostObserver: |
| 312 void OnHostMoved(const aura::WindowTreeHost* host, | 313 void OnHostMoved(const aura::WindowTreeHost* host, |
| 313 const gfx::Point& new_origin) override; | 314 const gfx::Point& new_origin) override; |
| 314 | 315 |
| 316 void OnHostSetWindowVisibility(const aura::WindowTreeHost* host, |
| 317 bool visible); |
| 318 |
| 315 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); | 319 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); |
| 316 | 320 |
| 317 #if defined(OS_WIN) | 321 #if defined(OS_WIN) |
| 318 // Sets the cutout rects from constrained windows. These are rectangles that | 322 // Sets the cutout rects from constrained windows. These are rectangles that |
| 319 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout | 323 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout |
| 320 // rects. | 324 // rects. |
| 321 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); | 325 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); |
| 322 | 326 |
| 323 // Updates the cursor clip region. Used for mouse locking. | 327 // Updates the cursor clip region. Used for mouse locking. |
| 324 void UpdateMouseLockRegion(); | 328 void UpdateMouseLockRegion(); |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 // compositing surface and showing the disambiguation popup. | 662 // compositing surface and showing the disambiguation popup. |
| 659 gfx::Vector2dF disambiguation_scroll_offset_; | 663 gfx::Vector2dF disambiguation_scroll_offset_; |
| 660 | 664 |
| 661 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 665 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 662 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 666 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 663 }; | 667 }; |
| 664 | 668 |
| 665 } // namespace content | 669 } // namespace content |
| 666 | 670 |
| 667 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 671 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |