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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 virtual void AccessibilitySetTextSelection( | 380 virtual void AccessibilitySetTextSelection( |
381 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; | 381 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; |
382 virtual gfx::Point GetLastTouchEventLocation() const OVERRIDE; | 382 virtual gfx::Point GetLastTouchEventLocation() const OVERRIDE; |
383 virtual void FatalAccessibilityTreeError() OVERRIDE; | 383 virtual void FatalAccessibilityTreeError() OVERRIDE; |
384 | 384 |
385 virtual ~RenderWidgetHostViewAura(); | 385 virtual ~RenderWidgetHostViewAura(); |
386 | 386 |
387 void UpdateCursorIfOverSelf(); | 387 void UpdateCursorIfOverSelf(); |
388 bool ShouldSkipFrame(gfx::Size size_in_dip) const; | 388 bool ShouldSkipFrame(gfx::Size size_in_dip) const; |
389 | 389 |
| 390 // Set the bounds of the window and handle size changes. Assumes the caller |
| 391 // has already adjusted the origin of |rect| to conform to whatever coordinate |
| 392 // space is required by aura::Window. |
| 393 void InternalSetBounds(const gfx::Rect& rect); |
| 394 |
390 // Lazily grab a resize lock if the aura window size doesn't match the current | 395 // Lazily grab a resize lock if the aura window size doesn't match the current |
391 // frame size, to give time to the renderer. | 396 // frame size, to give time to the renderer. |
392 void MaybeCreateResizeLock(); | 397 void MaybeCreateResizeLock(); |
393 | 398 |
394 // Checks if the resize lock can be released because we received an new frame. | 399 // Checks if the resize lock can be released because we received an new frame. |
395 void CheckResizeLock(); | 400 void CheckResizeLock(); |
396 | 401 |
397 void UpdateExternalTexture(); | 402 void UpdateExternalTexture(); |
398 ui::InputMethod* GetInputMethod() const; | 403 ui::InputMethod* GetInputMethod() const; |
399 | 404 |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 TouchEditingClient* touch_editing_client_; | 697 TouchEditingClient* touch_editing_client_; |
693 | 698 |
694 ui::LatencyInfo software_latency_info_; | 699 ui::LatencyInfo software_latency_info_; |
695 | 700 |
696 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 701 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
697 }; | 702 }; |
698 | 703 |
699 } // namespace content | 704 } // namespace content |
700 | 705 |
701 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 706 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |