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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host.h

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)
Patch Set: Add comment. Created 3 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 UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ui/aura/window_event_dispatcher.h" 10 #include "ui/aura/window_event_dispatcher.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // It is expected this calls InitHost() on the WindowTreeHost. 50 // It is expected this calls InitHost() on the WindowTreeHost.
51 virtual void Init(aura::Window* content_window, 51 virtual void Init(aura::Window* content_window,
52 const Widget::InitParams& params) = 0; 52 const Widget::InitParams& params) = 0;
53 53
54 // Invoked once the DesktopNativeWidgetAura has been created. 54 // Invoked once the DesktopNativeWidgetAura has been created.
55 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) = 0; 55 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) = 0;
56 56
57 // Called from DesktopNativeWidgetAura::OnWidgetInitDone(). 57 // Called from DesktopNativeWidgetAura::OnWidgetInitDone().
58 virtual void OnWidgetInitDone() = 0; 58 virtual void OnWidgetInitDone() = 0;
59 59
60 // Called from DesktopNativeWidgetAura::OnWindowActivated().
61 virtual void OnNativeWidgetActivationChanged(bool active) = 0;
62
60 // Creates and returns the Tooltip implementation to use. Return value is 63 // Creates and returns the Tooltip implementation to use. Return value is
61 // owned by DesktopNativeWidgetAura and lives as long as 64 // owned by DesktopNativeWidgetAura and lives as long as
62 // DesktopWindowTreeHost. 65 // DesktopWindowTreeHost.
63 virtual std::unique_ptr<corewm::Tooltip> CreateTooltip() = 0; 66 virtual std::unique_ptr<corewm::Tooltip> CreateTooltip() = 0;
64 67
65 // Creates and returns the DragDropClient implementation to use. Return value 68 // Creates and returns the DragDropClient implementation to use. Return value
66 // is owned by DesktopNativeWidgetAura and lives as long as 69 // is owned by DesktopNativeWidgetAura and lives as long as
67 // DesktopWindowTreeHost. 70 // DesktopWindowTreeHost.
68 virtual std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( 71 virtual std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient(
69 DesktopNativeCursorManager* cursor_manager) = 0; 72 DesktopNativeCursorManager* cursor_manager) = 0;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 165
163 // A return value of true indicates DesktopNativeCursorManager should be 166 // A return value of true indicates DesktopNativeCursorManager should be
164 // used, a return value of false indicates the DesktopWindowTreeHost manages 167 // used, a return value of false indicates the DesktopWindowTreeHost manages
165 // cursors itself. 168 // cursors itself.
166 virtual bool ShouldUseDesktopNativeCursorManager() const = 0; 169 virtual bool ShouldUseDesktopNativeCursorManager() const = 0;
167 }; 170 };
168 171
169 } // namespace views 172 } // namespace views
170 173
171 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 174 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698