Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 195793004: Implement overscroll support for the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix work area resize when virtual keyboard is shown. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 virtual gfx::NativeView GetNativeView() const OVERRIDE; 150 virtual gfx::NativeView GetNativeView() const OVERRIDE;
151 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; 151 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE;
152 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 152 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
153 virtual bool HasFocus() const OVERRIDE; 153 virtual bool HasFocus() const OVERRIDE;
154 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; 154 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE;
155 virtual void Show() OVERRIDE; 155 virtual void Show() OVERRIDE;
156 virtual void Hide() OVERRIDE; 156 virtual void Hide() OVERRIDE;
157 virtual bool IsShowing() OVERRIDE; 157 virtual bool IsShowing() OVERRIDE;
158 virtual gfx::Rect GetViewBounds() const OVERRIDE; 158 virtual gfx::Rect GetViewBounds() const OVERRIDE;
159 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 159 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
160 virtual int GetVisibleViewportHeight() const OVERRIDE;
161 virtual void SetKeyboardBounds(const gfx::Rect& bounds) OVERRIDE;
160 162
161 // Overridden from RenderWidgetHostViewPort: 163 // Overridden from RenderWidgetHostViewPort:
162 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 164 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
163 const gfx::Rect& pos) OVERRIDE; 165 const gfx::Rect& pos) OVERRIDE;
164 virtual void InitAsFullscreen( 166 virtual void InitAsFullscreen(
165 RenderWidgetHostView* reference_host_view) OVERRIDE; 167 RenderWidgetHostView* reference_host_view) OVERRIDE;
166 virtual void WasShown() OVERRIDE; 168 virtual void WasShown() OVERRIDE;
167 virtual void WasHidden() OVERRIDE; 169 virtual void WasHidden() OVERRIDE;
168 virtual void MovePluginWindows( 170 virtual void MovePluginWindows(
169 const gfx::Vector2d& scroll_offset, 171 const gfx::Vector2d& scroll_offset,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 bool has_horizontal_scrollbar) OVERRIDE; 235 bool has_horizontal_scrollbar) OVERRIDE;
234 virtual void SetScrollOffsetPinning( 236 virtual void SetScrollOffsetPinning(
235 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; 237 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE;
236 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; 238 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
237 virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE; 239 virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE;
238 virtual bool LockMouse() OVERRIDE; 240 virtual bool LockMouse() OVERRIDE;
239 virtual void UnlockMouse() OVERRIDE; 241 virtual void UnlockMouse() OVERRIDE;
240 virtual void OnSwapCompositorFrame( 242 virtual void OnSwapCompositorFrame(
241 uint32 output_surface_id, 243 uint32 output_surface_id,
242 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; 244 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE;
245
243 #if defined(OS_WIN) 246 #if defined(OS_WIN)
244 virtual void SetParentNativeViewAccessible( 247 virtual void SetParentNativeViewAccessible(
245 gfx::NativeViewAccessible accessible_parent) OVERRIDE; 248 gfx::NativeViewAccessible accessible_parent) OVERRIDE;
246 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; 249 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE;
247 #endif 250 #endif
248 251
249 // Overridden from ui::TextInputClient: 252 // Overridden from ui::TextInputClient:
250 virtual void SetCompositionText( 253 virtual void SetCompositionText(
251 const ui::CompositionText& composition) OVERRIDE; 254 const ui::CompositionText& composition) OVERRIDE;
252 virtual void ConfirmCompositionText() OVERRIDE; 255 virtual void ConfirmCompositionText() OVERRIDE;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, OutputSurfaceIdChange); 401 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, OutputSurfaceIdChange);
399 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 402 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
400 DiscardDelegatedFrames); 403 DiscardDelegatedFrames);
401 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 404 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
402 DiscardDelegatedFramesWithLocking); 405 DiscardDelegatedFramesWithLocking);
403 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SoftwareDPIChange); 406 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SoftwareDPIChange);
404 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 407 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
405 UpdateCursorIfOverSelf); 408 UpdateCursorIfOverSelf);
406 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraCopyRequestTest, 409 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraCopyRequestTest,
407 DestroyedAfterCopyRequest); 410 DestroyedAfterCopyRequest);
411 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
412 VisibleViewportTest);
408 413
409 class WindowObserver; 414 class WindowObserver;
410 friend class WindowObserver; 415 friend class WindowObserver;
411 416
412 // Overridden from ImageTransportFactoryObserver: 417 // Overridden from ImageTransportFactoryObserver:
413 virtual void OnLostResources() OVERRIDE; 418 virtual void OnLostResources() OVERRIDE;
414 419
415 // Overridden from BrowserAccessibilityDelegate: 420 // Overridden from BrowserAccessibilityDelegate:
416 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; 421 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE;
417 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; 422 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE;
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; 722 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_;
718 std::vector<scoped_refptr<OwnedMailbox> > idle_frame_subscriber_textures_; 723 std::vector<scoped_refptr<OwnedMailbox> > idle_frame_subscriber_textures_;
719 std::set<OwnedMailbox*> active_frame_subscriber_textures_; 724 std::set<OwnedMailbox*> active_frame_subscriber_textures_;
720 725
721 // YUV readback pipeline. 726 // YUV readback pipeline.
722 scoped_ptr<content::ReadbackYUVInterface> 727 scoped_ptr<content::ReadbackYUVInterface>
723 yuv_readback_pipeline_; 728 yuv_readback_pipeline_;
724 729
725 TouchEditingClient* touch_editing_client_; 730 TouchEditingClient* touch_editing_client_;
726 731
732 gfx::Rect virtual_keyboard_bounds_;
733
727 std::vector<ui::LatencyInfo> software_latency_info_; 734 std::vector<ui::LatencyInfo> software_latency_info_;
728 735
729 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 736 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
730 737
731 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; 738 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_;
732 739
733 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 740 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
734 741
735 #if defined(OS_WIN) 742 #if defined(OS_WIN)
736 // The LegacyRenderWidgetHostHWND class provides a dummy HWND which is used 743 // The LegacyRenderWidgetHostHWND class provides a dummy HWND which is used
737 // for accessibility, as the container for windowless plugins like 744 // for accessibility, as the container for windowless plugins like
738 // Flash/Silverlight, etc and for legacy drivers for trackpoints/trackpads, 745 // Flash/Silverlight, etc and for legacy drivers for trackpoints/trackpads,
739 // etc. 746 // etc.
740 scoped_ptr<content::LegacyRenderWidgetHostHWND> 747 scoped_ptr<content::LegacyRenderWidgetHostHWND>
741 legacy_render_widget_host_HWND_; 748 legacy_render_widget_host_HWND_;
742 #endif 749 #endif
743 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 750 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
744 }; 751 };
745 752
746 } // namespace content 753 } // namespace content
747 754
748 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 755 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698