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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
384 // Tracks whether SnapToPhysicalPixelBoundary() has been called. | 384 // Tracks whether SnapToPhysicalPixelBoundary() has been called. |
385 bool has_snapped_to_boundary() { return has_snapped_to_boundary_; } | 385 bool has_snapped_to_boundary() { return has_snapped_to_boundary_; } |
386 void ResetHasSnappedToBoundary() { has_snapped_to_boundary_ = false; } | 386 void ResetHasSnappedToBoundary() { has_snapped_to_boundary_ = false; } |
387 | 387 |
388 // Set the bounds of the window and handle size changes. Assumes the caller | 388 // Set the bounds of the window and handle size changes. Assumes the caller |
389 // has already adjusted the origin of |rect| to conform to whatever coordinate | 389 // has already adjusted the origin of |rect| to conform to whatever coordinate |
390 // space is required by the aura::Window. | 390 // space is required by the aura::Window. |
391 void InternalSetBounds(const gfx::Rect& rect); | 391 void InternalSetBounds(const gfx::Rect& rect); |
392 | 392 |
393 #if defined(OS_WIN) | 393 #if defined(OS_WIN) |
394 // Create and/or update the legacy dummy window which corresponds to | |
sadrul
2016/05/24 16:17:39
*Creates ... *updates
dmazzoni
2016/05/24 16:53:09
Done.
| |
395 // the bounds of the webcontents. It is needed for accessibility and | |
396 // for scrolling to work in legacy drivers for trackpoints/trackpads, etc. | |
397 void UpdateLegacyWin(); | |
398 | |
394 bool UsesNativeWindowFrame() const; | 399 bool UsesNativeWindowFrame() const; |
395 #endif | 400 #endif |
396 | 401 |
397 ui::InputMethod* GetInputMethod() const; | 402 ui::InputMethod* GetInputMethod() const; |
398 | 403 |
399 // Sends shutdown request. | 404 // Sends shutdown request. |
400 void Shutdown(); | 405 void Shutdown(); |
401 | 406 |
402 // Returns whether the widget needs an input grab to work properly. | 407 // Returns whether the widget needs an input grab to work properly. |
403 bool NeedsInputGrab(); | 408 bool NeedsInputGrab(); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
673 bool disable_input_event_router_for_testing_; | 678 bool disable_input_event_router_for_testing_; |
674 | 679 |
675 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 680 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
676 | 681 |
677 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 682 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
678 }; | 683 }; |
679 | 684 |
680 } // namespace content | 685 } // namespace content |
681 | 686 |
682 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 687 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |