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

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

Issue 775143003: cc: Implement unified BeginFrame on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move common logic to DelegatedFrameHost Created 6 years 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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 470
471 // Converts |rect| from window coordinate to screen coordinate. 471 // Converts |rect| from window coordinate to screen coordinate.
472 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const; 472 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const;
473 473
474 // Converts |rect| from screen coordinate to window coordinate. 474 // Converts |rect| from screen coordinate to window coordinate.
475 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; 475 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const;
476 476
477 // Helper function to set keyboard focus to the main window. 477 // Helper function to set keyboard focus to the main window.
478 void SetKeyboardFocus(); 478 void SetKeyboardFocus();
479 479
480 // Called when RenderWidget want to start BeginFrame scheduling or stop.
481 void OnSetNeedsBeginFrames(bool needs_begin_frames);
482
480 RenderFrameHostImpl* GetFocusedFrame(); 483 RenderFrameHostImpl* GetFocusedFrame();
481 484
482 // The model object. 485 // The model object.
483 RenderWidgetHostImpl* host_; 486 RenderWidgetHostImpl* host_;
484 487
485 aura::Window* window_; 488 aura::Window* window_;
486 489
487 scoped_ptr<DelegatedFrameHost> delegated_frame_host_; 490 scoped_ptr<DelegatedFrameHost> delegated_frame_host_;
488 491
489 scoped_ptr<WindowObserver> window_observer_; 492 scoped_ptr<WindowObserver> window_observer_;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 // compositing surface and showing the disambiguation popup. 627 // compositing surface and showing the disambiguation popup.
625 gfx::Vector2dF disambiguation_scroll_offset_; 628 gfx::Vector2dF disambiguation_scroll_offset_;
626 629
627 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 630 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
628 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 631 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
629 }; 632 };
630 633
631 } // namespace content 634 } // namespace content
632 635
633 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 636 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698