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

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: Add aura:: 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // Overridden from aura::client::CursorClientObserver: 308 // Overridden from aura::client::CursorClientObserver:
309 void OnCursorVisibilityChanged(bool is_visible) override; 309 void OnCursorVisibilityChanged(bool is_visible) override;
310 310
311 // Overridden from aura::client::FocusChangeObserver: 311 // Overridden from aura::client::FocusChangeObserver:
312 void OnWindowFocused(aura::Window* gained_focus, 312 void OnWindowFocused(aura::Window* gained_focus,
313 aura::Window* lost_focus) override; 313 aura::Window* lost_focus) override;
314 314
315 // Overridden from aura::WindowTreeHostObserver: 315 // Overridden from aura::WindowTreeHostObserver:
316 void OnHostMoved(const aura::WindowTreeHost* host, 316 void OnHostMoved(const aura::WindowTreeHost* host,
317 const gfx::Point& new_origin) override; 317 const gfx::Point& new_origin) override;
318 void OnHostCompositorWillBeDestroyed(
319 const aura::WindowTreeHost* host) override;
318 320
319 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); 321 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params);
320 322
321 #if defined(OS_WIN) 323 #if defined(OS_WIN)
322 // Sets the cutout rects from constrained windows. These are rectangles that 324 // Sets the cutout rects from constrained windows. These are rectangles that
323 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout 325 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout
324 // rects. 326 // rects.
325 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); 327 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects);
326 328
327 // Updates the cursor clip region. Used for mouse locking. 329 // Updates the cursor clip region. Used for mouse locking.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // moved to center. 445 // moved to center.
444 bool ShouldMoveToCenter(); 446 bool ShouldMoveToCenter();
445 447
446 // Called after |window_| is parented to a WindowEventDispatcher. 448 // Called after |window_| is parented to a WindowEventDispatcher.
447 void AddedToRootWindow(); 449 void AddedToRootWindow();
448 450
449 // Called prior to removing |window_| from a WindowEventDispatcher. 451 // Called prior to removing |window_| from a WindowEventDispatcher.
450 void RemovingFromRootWindow(); 452 void RemovingFromRootWindow();
451 453
452 // DelegatedFrameHostClient implementation. 454 // DelegatedFrameHostClient implementation.
453 ui::Compositor* GetCompositor() const override;
454 ui::Layer* GetLayer() override; 455 ui::Layer* GetLayer() override;
455 RenderWidgetHostImpl* GetHost() override; 456 RenderWidgetHostImpl* GetHost() override;
456 bool IsVisible() override; 457 bool IsVisible() override;
457 scoped_ptr<ResizeLock> CreateResizeLock(bool defer_compositor_lock) override; 458 scoped_ptr<ResizeLock> CreateResizeLock(bool defer_compositor_lock) override;
458 gfx::Size DesiredFrameSize() override; 459 gfx::Size DesiredFrameSize() override;
459 float CurrentDeviceScaleFactor() override; 460 float CurrentDeviceScaleFactor() override;
460 gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override; 461 gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override;
461 462
462 // Detaches |this| from the input method object. 463 // Detaches |this| from the input method object.
463 void DetachFromInputMethod(); 464 void DetachFromInputMethod();
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 // compositing surface and showing the disambiguation popup. 637 // compositing surface and showing the disambiguation popup.
637 gfx::Vector2dF disambiguation_scroll_offset_; 638 gfx::Vector2dF disambiguation_scroll_offset_;
638 639
639 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 640 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
640 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 641 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
641 }; 642 };
642 643
643 } // namespace content 644 } // namespace content
644 645
645 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 646 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698