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

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

Issue 693523003: MacViews: Put wm window animation calls behind an interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@views-clipboard
Patch Set: Fix windows build Created 6 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 "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/views/widget/native_widget_private.h" 9 #include "ui/views/widget/native_widget_private.h"
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 virtual void SetCursor(gfx::NativeCursor cursor) override; 98 virtual void SetCursor(gfx::NativeCursor cursor) override;
99 virtual bool IsMouseEventsEnabled() const override; 99 virtual bool IsMouseEventsEnabled() const override;
100 virtual void ClearNativeFocus() override; 100 virtual void ClearNativeFocus() override;
101 virtual gfx::Rect GetWorkAreaBoundsInScreen() const override; 101 virtual gfx::Rect GetWorkAreaBoundsInScreen() const override;
102 virtual Widget::MoveLoopResult RunMoveLoop( 102 virtual Widget::MoveLoopResult RunMoveLoop(
103 const gfx::Vector2d& drag_offset, 103 const gfx::Vector2d& drag_offset,
104 Widget::MoveLoopSource source, 104 Widget::MoveLoopSource source,
105 Widget::MoveLoopEscapeBehavior escape_behavior) override; 105 Widget::MoveLoopEscapeBehavior escape_behavior) override;
106 virtual void EndMoveLoop() override; 106 virtual void EndMoveLoop() override;
107 virtual void SetVisibilityChangedAnimationsEnabled(bool value) override; 107 virtual void SetVisibilityChangedAnimationsEnabled(bool value) override;
108 virtual void SetVisibilityAnimationDuration(
109 const base::TimeDelta& duration) override;
110 virtual void SetVisibilityAnimationTransition(
111 Widget::VisibilityTransition transition) override;
108 virtual ui::NativeTheme* GetNativeTheme() const override; 112 virtual ui::NativeTheme* GetNativeTheme() const override;
109 virtual void OnRootViewLayout() override; 113 virtual void OnRootViewLayout() override;
110 virtual bool IsTranslucentWindowOpacitySupported() const override; 114 virtual bool IsTranslucentWindowOpacitySupported() const override;
111 virtual void OnSizeConstraintsChanged() override; 115 virtual void OnSizeConstraintsChanged() override;
112 virtual void RepostNativeEvent(gfx::NativeEvent native_event) override; 116 virtual void RepostNativeEvent(gfx::NativeEvent native_event) override;
113 117
114 protected: 118 protected:
115 internal::NativeWidgetDelegate* delegate() { return delegate_; } 119 internal::NativeWidgetDelegate* delegate() { return delegate_; }
116 120
117 private: 121 private:
118 friend class test::MockNativeWidgetMac; 122 friend class test::MockNativeWidgetMac;
119 123
120 internal::NativeWidgetDelegate* delegate_; 124 internal::NativeWidgetDelegate* delegate_;
121 scoped_ptr<BridgedNativeWidget> bridge_; 125 scoped_ptr<BridgedNativeWidget> bridge_;
122 126
123 Widget::InitParams::Ownership ownership_; 127 Widget::InitParams::Ownership ownership_;
124 128
125 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); 129 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac);
126 }; 130 };
127 131
128 } // namespace views 132 } // namespace views
129 133
130 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ 134 #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