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

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

Issue 859423002: Explicitly specify the ui::Compositor to DelegatedFrameHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use compositor Created 5 years, 11 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // moved to center. 443 // moved to center.
444 bool ShouldMoveToCenter(); 444 bool ShouldMoveToCenter();
445 445
446 // Called after |window_| is parented to a WindowEventDispatcher. 446 // Called after |window_| is parented to a WindowEventDispatcher.
447 void AddedToRootWindow(); 447 void AddedToRootWindow();
448 448
449 // Called prior to removing |window_| from a WindowEventDispatcher. 449 // Called prior to removing |window_| from a WindowEventDispatcher.
450 void RemovingFromRootWindow(); 450 void RemovingFromRootWindow();
451 451
452 // DelegatedFrameHostClient implementation. 452 // DelegatedFrameHostClient implementation.
453 ui::Compositor* GetCompositor() const override;
454 ui::Layer* GetLayer() override; 453 ui::Layer* GetLayer() override;
455 RenderWidgetHostImpl* GetHost() override; 454 RenderWidgetHostImpl* GetHost() override;
456 bool IsVisible() override; 455 bool IsVisible() override;
457 scoped_ptr<ResizeLock> CreateResizeLock(bool defer_compositor_lock) override; 456 scoped_ptr<ResizeLock> CreateResizeLock(bool defer_compositor_lock) override;
458 gfx::Size DesiredFrameSize() override; 457 gfx::Size DesiredFrameSize() override;
459 float CurrentDeviceScaleFactor() override; 458 float CurrentDeviceScaleFactor() override;
460 gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override; 459 gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override;
461 460
462 // Detaches |this| from the input method object. 461 // Detaches |this| from the input method object.
463 void DetachFromInputMethod(); 462 void DetachFromInputMethod();
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 // compositing surface and showing the disambiguation popup. 635 // compositing surface and showing the disambiguation popup.
637 gfx::Vector2dF disambiguation_scroll_offset_; 636 gfx::Vector2dF disambiguation_scroll_offset_;
638 637
639 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 638 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
640 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 639 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
641 }; 640 };
642 641
643 } // namespace content 642 } // namespace content
644 643
645 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 644 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698