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

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

Issue 399133008: MacViews: Remove const from NativeWidgetMac::OnRootViewLayout to match other NativeWidget* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix conflict with r284026 Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual bool IsMouseEventsEnabled() const OVERRIDE; 100 virtual bool IsMouseEventsEnabled() const OVERRIDE;
101 virtual void ClearNativeFocus() OVERRIDE; 101 virtual void ClearNativeFocus() OVERRIDE;
102 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; 102 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE;
103 virtual Widget::MoveLoopResult RunMoveLoop( 103 virtual Widget::MoveLoopResult RunMoveLoop(
104 const gfx::Vector2d& drag_offset, 104 const gfx::Vector2d& drag_offset,
105 Widget::MoveLoopSource source, 105 Widget::MoveLoopSource source,
106 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; 106 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE;
107 virtual void EndMoveLoop() OVERRIDE; 107 virtual void EndMoveLoop() OVERRIDE;
108 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; 108 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE;
109 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; 109 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE;
110 virtual void OnRootViewLayout() const OVERRIDE; 110 virtual void OnRootViewLayout() OVERRIDE;
111 virtual bool IsTranslucentWindowOpacitySupported() const OVERRIDE; 111 virtual bool IsTranslucentWindowOpacitySupported() const OVERRIDE;
112 virtual void RepostNativeEvent(gfx::NativeEvent native_event) OVERRIDE; 112 virtual void RepostNativeEvent(gfx::NativeEvent native_event) OVERRIDE;
113 113
114 protected: 114 protected:
115 internal::NativeWidgetDelegate* delegate() { return delegate_; } 115 internal::NativeWidgetDelegate* delegate() { return delegate_; }
116 116
117 private: 117 private:
118 friend class test::MockNativeWidgetMac; 118 friend class test::MockNativeWidgetMac;
119 119
120 internal::NativeWidgetDelegate* delegate_; 120 internal::NativeWidgetDelegate* delegate_;
121 scoped_ptr<BridgedNativeWidget> bridge_; 121 scoped_ptr<BridgedNativeWidget> bridge_;
122 122
123 Widget::InitParams::Ownership ownership_; 123 Widget::InitParams::Ownership ownership_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac); 125 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMac);
126 }; 126 };
127 127
128 } // namespace views 128 } // namespace views
129 129
130 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_ 130 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698