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

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

Issue 1000503002: Add BeginFrameObserverProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 void DelegatedFrameHostSendCompositorSwapAck( 465 void DelegatedFrameHostSendCompositorSwapAck(
466 int output_surface_id, 466 int output_surface_id,
467 const cc::CompositorFrameAck& ack) override; 467 const cc::CompositorFrameAck& ack) override;
468 void DelegatedFrameHostSendReclaimCompositorResources( 468 void DelegatedFrameHostSendReclaimCompositorResources(
469 int output_surface_id, 469 int output_surface_id,
470 const cc::CompositorFrameAck& ack) override; 470 const cc::CompositorFrameAck& ack) override;
471 void DelegatedFrameHostOnLostCompositorResources() override; 471 void DelegatedFrameHostOnLostCompositorResources() override;
472 void DelegatedFrameHostUpdateVSyncParameters( 472 void DelegatedFrameHostUpdateVSyncParameters(
473 const base::TimeTicks& timebase, 473 const base::TimeTicks& timebase,
474 const base::TimeDelta& interval) override; 474 const base::TimeDelta& interval) override;
475 void DelegatedFrameHostSendBeginFrame(
476 const cc::BeginFrameArgs& args) override;
475 477
476 // Detaches |this| from the input method object. 478 // Detaches |this| from the input method object.
477 void DetachFromInputMethod(); 479 void DetachFromInputMethod();
478 480
479 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method 481 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method
480 // calls our keybindings handler against the event and send matched 482 // calls our keybindings handler against the event and send matched
481 // edit commands to renderer instead. 483 // edit commands to renderer instead.
482 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); 484 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event);
483 485
484 // Dismisses a Web Popup on a mouse or touch press outside the popup and its 486 // Dismisses a Web Popup on a mouse or touch press outside the popup and its
485 // parent. 487 // parent.
486 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event); 488 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event);
487 489
488 // Converts |rect| from window coordinate to screen coordinate. 490 // Converts |rect| from window coordinate to screen coordinate.
489 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const; 491 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const;
490 492
491 // Converts |rect| from screen coordinate to window coordinate. 493 // Converts |rect| from screen coordinate to window coordinate.
492 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; 494 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const;
493 495
494 // Helper function to set keyboard focus to the main window. 496 // Helper function to set keyboard focus to the main window.
495 void SetKeyboardFocus(); 497 void SetKeyboardFocus();
496 498
499 // Called when RenderWidget want to start BeginFrame scheduling or stop.
500 void OnSetNeedsBeginFrames(bool needs_begin_frames);
501
497 RenderFrameHostImpl* GetFocusedFrame(); 502 RenderFrameHostImpl* GetFocusedFrame();
498 503
499 // The model object. 504 // The model object.
500 RenderWidgetHostImpl* host_; 505 RenderWidgetHostImpl* host_;
501 506
502 aura::Window* window_; 507 aura::Window* window_;
503 508
504 scoped_ptr<DelegatedFrameHost> delegated_frame_host_; 509 scoped_ptr<DelegatedFrameHost> delegated_frame_host_;
505 510
506 scoped_ptr<WindowObserver> window_observer_; 511 scoped_ptr<WindowObserver> window_observer_;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 // compositing surface and showing the disambiguation popup. 655 // compositing surface and showing the disambiguation popup.
651 gfx::Vector2dF disambiguation_scroll_offset_; 656 gfx::Vector2dF disambiguation_scroll_offset_;
652 657
653 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 658 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
654 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 659 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
655 }; 660 };
656 661
657 } // namespace content 662 } // namespace content
658 663
659 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 664 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698