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

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

Issue 2507403002: Remove Widget::OnRootViewLayout(). (Closed)
Patch Set: Created 4 years, 1 month 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 Widget::MoveLoopResult RunMoveLoop( 121 Widget::MoveLoopResult RunMoveLoop(
122 const gfx::Vector2d& drag_offset, 122 const gfx::Vector2d& drag_offset,
123 Widget::MoveLoopSource source, 123 Widget::MoveLoopSource source,
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 ui::NativeTheme* GetNativeTheme() const override; 130 ui::NativeTheme* GetNativeTheme() const override;
131 void OnRootViewLayout() override;
132 bool IsTranslucentWindowOpacitySupported() const override; 131 bool IsTranslucentWindowOpacitySupported() const override;
133 void OnSizeConstraintsChanged() override; 132 void OnSizeConstraintsChanged() override;
134 void RepostNativeEvent(gfx::NativeEvent native_event) override; 133 void RepostNativeEvent(gfx::NativeEvent native_event) override;
135 std::string GetName() const override; 134 std::string GetName() const override;
136 135
137 protected: 136 protected:
138 // Creates the NSWindow that will be passed to the BridgedNativeWidget. 137 // Creates the NSWindow that will be passed to the BridgedNativeWidget.
139 // Called by InitNativeWidget. The return value will be autoreleased. 138 // Called by InitNativeWidget. The return value will be autoreleased.
140 virtual NativeWidgetMacNSWindow* CreateNSWindow( 139 virtual NativeWidgetMacNSWindow* CreateNSWindow(
141 const Widget::InitParams& params); 140 const Widget::InitParams& params);
(...skipping 11 matching lines...) Expand all
153 152
154 // Internal name. 153 // Internal name.
155 std::string name_; 154 std::string name_;
156 155
157 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); 156 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac);
158 }; 157 };
159 158
160 } // namespace views 159 } // namespace views
161 160
162 #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