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

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

Issue 1221193009: [Docking] Persists docked state for tab-less browser windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [Docking] Persists docked state for tab-less browser windows (nits) Created 5 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
« no previous file with comments | « chrome/browser/ui/window_sizer/window_sizer.cc ('k') | ui/views/widget/native_widget_aura.cc » ('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 (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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 int OnPerformDrop(const ui::DropTargetEvent& event) override; 185 int OnPerformDrop(const ui::DropTargetEvent& event) override;
186 186
187 protected: 187 protected:
188 ~NativeWidgetAura() override; 188 ~NativeWidgetAura() override;
189 189
190 internal::NativeWidgetDelegate* delegate() { return delegate_; } 190 internal::NativeWidgetDelegate* delegate() { return delegate_; }
191 191
192 private: 192 private:
193 class ActiveWindowObserver; 193 class ActiveWindowObserver;
194 194
195 bool IsDocked() const;
195 void SetInitialFocus(ui::WindowShowState show_state); 196 void SetInitialFocus(ui::WindowShowState show_state);
196 197
197 internal::NativeWidgetDelegate* delegate_; 198 internal::NativeWidgetDelegate* delegate_;
198 199
199 // WARNING: set to NULL when destroyed. As the Widget is not necessarily 200 // WARNING: set to NULL when destroyed. As the Widget is not necessarily
200 // destroyed along with |window_| all usage of |window_| should first verify 201 // destroyed along with |window_| all usage of |window_| should first verify
201 // non-NULL. 202 // non-NULL.
202 aura::Window* window_; 203 aura::Window* window_;
203 204
204 // See class documentation for Widget in widget.h for a note about ownership. 205 // See class documentation for Widget in widget.h for a note about ownership.
(...skipping 19 matching lines...) Expand all
224 // The following factory is used for calls to close the NativeWidgetAura 225 // The following factory is used for calls to close the NativeWidgetAura
225 // instance. 226 // instance.
226 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; 227 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_;
227 228
228 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 229 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
229 }; 230 };
230 231
231 } // namespace views 232 } // namespace views
232 233
233 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 234 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/window_sizer/window_sizer.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698