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

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

Issue 554183002: Update the maximize button when size constraints change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed GlassBrowserFrameView. Created 6 years, 3 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_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ui/aura/client/focus_change_observer.h" 10 #include "ui/aura/client/focus_change_observer.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; 128 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE;
129 virtual Widget::MoveLoopResult RunMoveLoop( 129 virtual Widget::MoveLoopResult RunMoveLoop(
130 const gfx::Vector2d& drag_offset, 130 const gfx::Vector2d& drag_offset,
131 Widget::MoveLoopSource source, 131 Widget::MoveLoopSource source,
132 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE; 132 Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE;
133 virtual void EndMoveLoop() OVERRIDE; 133 virtual void EndMoveLoop() OVERRIDE;
134 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; 134 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE;
135 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; 135 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE;
136 virtual void OnRootViewLayout() OVERRIDE; 136 virtual void OnRootViewLayout() OVERRIDE;
137 virtual bool IsTranslucentWindowOpacitySupported() const OVERRIDE; 137 virtual bool IsTranslucentWindowOpacitySupported() const OVERRIDE;
138 virtual void OnSizeConstraintsChanged() OVERRIDE;
tapted 2014/09/11 05:22:22 Can you add this to NativeWidgetMac too? It can ju
jackhou1 2014/09/11 06:28:18 Done.
138 virtual void RepostNativeEvent(gfx::NativeEvent native_event) OVERRIDE; 139 virtual void RepostNativeEvent(gfx::NativeEvent native_event) OVERRIDE;
139 140
140 // Overridden from views::InputMethodDelegate: 141 // Overridden from views::InputMethodDelegate:
141 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE; 142 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE;
142 143
143 // Overridden from aura::WindowDelegate: 144 // Overridden from aura::WindowDelegate:
144 virtual gfx::Size GetMinimumSize() const OVERRIDE; 145 virtual gfx::Size GetMinimumSize() const OVERRIDE;
145 virtual gfx::Size GetMaximumSize() const OVERRIDE; 146 virtual gfx::Size GetMaximumSize() const OVERRIDE;
146 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 147 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
147 const gfx::Rect& new_bounds) OVERRIDE; 148 const gfx::Rect& new_bounds) OVERRIDE;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 229
229 scoped_ptr<DropHelper> drop_helper_; 230 scoped_ptr<DropHelper> drop_helper_;
230 int last_drop_operation_; 231 int last_drop_operation_;
231 232
232 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 233 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
233 }; 234 };
234 235
235 } // namespace views 236 } // namespace views
236 237
237 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 238 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698