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

Side by Side Diff: ui/views/widget/native_widget_mac.h

Issue 2645253002: DesktopAura: Track windows "owned" via the DesktopWindowTreeHost (Closed)
Patch Set: Add context, comment Created 3 years, 10 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
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NATIVE_WIDGET_MAC_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/views/widget/native_widget_private.h" 10 #include "ui/views/widget/native_widget_private.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 Widget::MoveLoopEscapeBehavior escape_behavior) override; 124 Widget::MoveLoopEscapeBehavior escape_behavior) override;
125 void EndMoveLoop() override; 125 void EndMoveLoop() override;
126 void SetVisibilityChangedAnimationsEnabled(bool value) override; 126 void SetVisibilityChangedAnimationsEnabled(bool value) override;
127 void SetVisibilityAnimationDuration(const base::TimeDelta& duration) override; 127 void SetVisibilityAnimationDuration(const base::TimeDelta& duration) override;
128 void SetVisibilityAnimationTransition( 128 void SetVisibilityAnimationTransition(
129 Widget::VisibilityTransition transition) override; 129 Widget::VisibilityTransition transition) override;
130 bool IsTranslucentWindowOpacitySupported() const override; 130 bool IsTranslucentWindowOpacitySupported() const override;
131 void OnSizeConstraintsChanged() override; 131 void OnSizeConstraintsChanged() override;
132 void RepostNativeEvent(gfx::NativeEvent native_event) override; 132 void RepostNativeEvent(gfx::NativeEvent native_event) override;
133 std::string GetName() const override; 133 std::string GetName() const override;
134 Widget::Widgets GetAllOwnedTopLevelWidgets() const override;
134 135
135 protected: 136 protected:
136 // Creates the NSWindow that will be passed to the BridgedNativeWidget. 137 // Creates the NSWindow that will be passed to the BridgedNativeWidget.
137 // Called by InitNativeWidget. The return value will be autoreleased. 138 // Called by InitNativeWidget. The return value will be autoreleased.
138 virtual NativeWidgetMacNSWindow* CreateNSWindow( 139 virtual NativeWidgetMacNSWindow* CreateNSWindow(
139 const Widget::InitParams& params); 140 const Widget::InitParams& params);
140 141
141 internal::NativeWidgetDelegate* delegate() { return delegate_; } 142 internal::NativeWidgetDelegate* delegate() { return delegate_; }
142 143
143 private: 144 private:
144 friend class test::MockNativeWidgetMac; 145 friend class test::MockNativeWidgetMac;
145 friend class test::HitTestNativeWidgetMac; 146 friend class test::HitTestNativeWidgetMac;
146 147
147 internal::NativeWidgetDelegate* delegate_; 148 internal::NativeWidgetDelegate* delegate_;
148 std::unique_ptr<BridgedNativeWidget> bridge_; 149 std::unique_ptr<BridgedNativeWidget> bridge_;
149 150
150 Widget::InitParams::Ownership ownership_; 151 Widget::InitParams::Ownership ownership_;
151 152
152 // Internal name. 153 // Internal name.
153 std::string name_; 154 std::string name_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); 156 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac);
156 }; 157 };
157 158
158 } // namespace views 159 } // namespace views
159 160
160 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ 161 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698