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

Side by Side Diff: ash/shell.h

Issue 1812013003: Pass shelf instances, not root windows, for ash context menus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call OnShelfAlignmentChanged after LayoutShelf. Created 4 years, 9 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/shelf/shelf_view.cc ('k') | ash/shell.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 ASH_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 // TODO(oshima): Define an interface to access shelf/launcher 456 // TODO(oshima): Define an interface to access shelf/launcher
457 // state, or just use Launcher. 457 // state, or just use Launcher.
458 458
459 // Sets/gets the shelf auto-hide behavior on |root_window|. 459 // Sets/gets the shelf auto-hide behavior on |root_window|.
460 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, 460 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior,
461 aura::Window* root_window); 461 aura::Window* root_window);
462 ShelfAutoHideBehavior GetShelfAutoHideBehavior( 462 ShelfAutoHideBehavior GetShelfAutoHideBehavior(
463 aura::Window* root_window) const; 463 aura::Window* root_window) const;
464 464
465 // Sets/gets shelf's alignment on |root_window|. 465 // Sets/gets shelf's alignment on |root_window|.
466 void SetShelfAlignment(ShelfAlignment alignment, 466 void SetShelfAlignment(ShelfAlignment alignment, aura::Window* root_window);
467 aura::Window* root_window); 467 ShelfAlignment GetShelfAlignment(const aura::Window* root_window) const;
468 ShelfAlignment GetShelfAlignment(const aura::Window* root_window); 468
469 // Called when the alignment for a shelf changes.
470 void OnShelfAlignmentChanged(aura::Window* root_window);
469 471
470 // Notifies |observers_| when entering or exiting fullscreen mode in 472 // Notifies |observers_| when entering or exiting fullscreen mode in
471 // |root_window|. 473 // |root_window|.
472 void NotifyFullscreenStateChange(bool is_fullscreen, 474 void NotifyFullscreenStateChange(bool is_fullscreen,
473 aura::Window* root_window); 475 aura::Window* root_window);
474 476
475 // Creates a modal background (a partially-opaque fullscreen window) 477 // Creates a modal background (a partially-opaque fullscreen window)
476 // on all displays for |window|. 478 // on all displays for |window|.
477 void CreateModalBackground(aura::Window* window); 479 void CreateModalBackground(aura::Window* window);
478 480
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 bool in_mus_ = false; 772 bool in_mus_ = false;
771 773
772 scoped_ptr<KeyboardUI> keyboard_ui_; 774 scoped_ptr<KeyboardUI> keyboard_ui_;
773 775
774 DISALLOW_COPY_AND_ASSIGN(Shell); 776 DISALLOW_COPY_AND_ASSIGN(Shell);
775 }; 777 };
776 778
777 } // namespace ash 779 } // namespace ash
778 780
779 #endif // ASH_SHELL_H_ 781 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_view.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698