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

Side by Side Diff: ash/wm/window_state.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 | « ash/wm/video_detector.h ('k') | cc/animation/layer_animation_controller.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_WM_WINDOW_STATE_H_ 5 #ifndef ASH_WM_WINDOW_STATE_H_
6 #define ASH_WM_WINDOW_STATE_H_ 6 #define ASH_WM_WINDOW_STATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/drag_details.h" 9 #include "ash/wm/drag_details.h"
10 #include "ash/wm/wm_types.h" 10 #include "ash/wm/wm_types.h"
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 bool in_immersive_fullscreen_; 363 bool in_immersive_fullscreen_;
364 bool hide_shelf_when_fullscreen_; 364 bool hide_shelf_when_fullscreen_;
365 bool minimum_visibility_; 365 bool minimum_visibility_;
366 bool can_be_dragged_; 366 bool can_be_dragged_;
367 367
368 // A property to remember the window position which was set before the 368 // A property to remember the window position which was set before the
369 // auto window position manager changed the window bounds, so that it can get 369 // auto window position manager changed the window bounds, so that it can get
370 // restored when only this one window gets shown. 370 // restored when only this one window gets shown.
371 scoped_ptr<gfx::Rect> pre_auto_manage_window_bounds_; 371 scoped_ptr<gfx::Rect> pre_auto_manage_window_bounds_;
372 372
373 ObserverList<WindowStateObserver> observer_list_; 373 base::ObserverList<WindowStateObserver> observer_list_;
374 374
375 // True to ignore a property change event to avoid reentrance in 375 // True to ignore a property change event to avoid reentrance in
376 // UpdateWindowStateType() 376 // UpdateWindowStateType()
377 bool ignore_property_change_; 377 bool ignore_property_change_;
378 378
379 scoped_ptr<State> current_state_; 379 scoped_ptr<State> current_state_;
380 380
381 DISALLOW_COPY_AND_ASSIGN(WindowState); 381 DISALLOW_COPY_AND_ASSIGN(WindowState);
382 }; 382 };
383 383
384 // Returns the WindowState for active window. Returns |NULL| 384 // Returns the WindowState for active window. Returns |NULL|
385 // if there is no active window. 385 // if there is no active window.
386 ASH_EXPORT WindowState* GetActiveWindowState(); 386 ASH_EXPORT WindowState* GetActiveWindowState();
387 387
388 // Returns the WindowState for |window|. Creates WindowState 388 // Returns the WindowState for |window|. Creates WindowState
389 // if it didn't exist. The settings object is owned by |window|. 389 // if it didn't exist. The settings object is owned by |window|.
390 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); 390 ASH_EXPORT WindowState* GetWindowState(aura::Window* window);
391 391
392 // const version of GetWindowState. 392 // const version of GetWindowState.
393 ASH_EXPORT const WindowState* 393 ASH_EXPORT const WindowState*
394 GetWindowState(const aura::Window* window); 394 GetWindowState(const aura::Window* window);
395 395
396 } // namespace wm 396 } // namespace wm
397 } // namespace ash 397 } // namespace ash
398 398
399 #endif // ASH_WM_WINDOW_STATE_H_ 399 #endif // ASH_WM_WINDOW_STATE_H_
OLDNEW
« no previous file with comments | « ash/wm/video_detector.h ('k') | cc/animation/layer_animation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698