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

Unified Diff: ash/shelf/shelf_layout_manager.h

Issue 115113006: Rename Launcher to Shelf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shelf/shelf_delegate.h ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_layout_manager.h
diff --git a/ash/shelf/shelf_layout_manager.h b/ash/shelf/shelf_layout_manager.h
index 5d0496b8f9bc5b8c327d79e235fdcc6cc19bf50b..ee9091b6fe78c5a412d33e06ee8a3ce4dc94021b 100644
--- a/ash/shelf/shelf_layout_manager.h
+++ b/ash/shelf/shelf_layout_manager.h
@@ -8,8 +8,8 @@
#include <vector>
#include "ash/ash_export.h"
-#include "ash/launcher/launcher.h"
#include "ash/shelf/background_animator.h"
+#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_types.h"
#include "ash/shell_observer.h"
#include "ash/system/status_area_widget.h"
@@ -51,9 +51,9 @@ class ShelfLayoutManagerTest;
class StatusAreaWidget;
class WorkspaceController;
-// ShelfLayoutManager is the layout manager responsible for the launcher and
-// status widgets. The launcher is given the total available width and told the
-// width of the status area. This allows the launcher to draw the background and
+// ShelfLayoutManager is the layout manager responsible for the shelf and
+// status widgets. The shelf is given the total available width and told the
+// width of the status area. This allows the shelf to draw the background and
// layout to the status area.
// To respond to bounds changes in the status area StatusAreaLayoutManager works
// closely with ShelfLayoutManager.
@@ -82,7 +82,7 @@ class ASH_EXPORT ShelfLayoutManager :
static const int kShelfSize;
// Inset between the inner edge of the shelf (towards centre of screen), and
- // the launcher items, notifications, status area etc.
+ // the shelf items, notifications, status area etc.
static const int kShelfItemInset;
// Returns the preferred size for the shelf (either kLauncherPreferredSize or
@@ -115,7 +115,7 @@ class ASH_EXPORT ShelfLayoutManager :
// Clears internal data for shutdown process.
void PrepareForShutdown();
- // Returns whether the shelf and its contents (launcher, status) are visible
+ // Returns whether the shelf and its contents (shelf, status) are visible
// on the screen.
bool IsVisible() const;
@@ -125,7 +125,7 @@ class ASH_EXPORT ShelfLayoutManager :
// Returns the docked area bounds.
const gfx::Rect& dock_bounds() const { return dock_bounds_; }
- // Stops any animations and sets the bounds of the launcher and status
+ // Stops any animations and sets the bounds of the shelf and status
// widgets.
void LayoutShelf();
@@ -136,7 +136,7 @@ class ASH_EXPORT ShelfLayoutManager :
// Updates the visibility state.
void UpdateVisibilityState();
- // Invoked by the shelf/launcher when the auto-hide state may have changed.
+ // Invoked by the shelf when the auto-hide state may have changed.
void UpdateAutoHideState();
ShelfVisibilityState visibility_state() const {
@@ -215,9 +215,9 @@ class ASH_EXPORT ShelfLayoutManager :
// Is the shelf's alignment horizontal?
bool IsHorizontalAlignment() const;
- // Returns a ShelfLayoutManager on the display which has a launcher for
- // given |window|. See RootWindowController::ForLauncher for more info.
- static ShelfLayoutManager* ForLauncher(aura::Window* window);
+ // Returns a ShelfLayoutManager on the display which has a shelf for
+ // given |window|. See RootWindowController::ForShelf for more info.
+ static ShelfLayoutManager* ForShelf(aura::Window* window);
private:
class AutoHideEventFilter;
@@ -234,7 +234,7 @@ class ASH_EXPORT ShelfLayoutManager :
float opacity;
float status_opacity;
gfx::Rect shelf_bounds_in_root;
- gfx::Rect launcher_bounds_in_shelf;
+ gfx::Rect shelf_bounds_in_shelf;
gfx::Rect status_bounds_in_shelf;
gfx::Insets work_area_insets;
};
@@ -266,7 +266,7 @@ class ASH_EXPORT ShelfLayoutManager :
// Sets the visibility of the shelf to |state|.
void SetState(ShelfVisibilityState visibility_state);
- // Updates the bounds and opacity of the launcher and status widgets.
+ // Updates the bounds and opacity of the shelf and status widgets.
// If |observer| is specified, it will be called back when the animations, if
// any, are complete.
void UpdateBoundsAndOpacity(const TargetBounds& target_bounds,
@@ -309,12 +309,12 @@ class ASH_EXPORT ShelfLayoutManager :
// two displays.
gfx::Rect GetAutoHideShowShelfRegionInScreen() const;
- // Returns the AutoHideState. This value is determined from the launcher and
+ // Returns the AutoHideState. This value is determined from the shelf and
// tray.
ShelfAutoHideState CalculateAutoHideState(
ShelfVisibilityState visibility_state) const;
- // Updates the hit test bounds override for launcher and status area.
+ // Updates the hit test bounds override for shelf and status area.
void UpdateHitTestBounds();
// Returns true if |window| is a descendant of the shelf.
@@ -369,8 +369,8 @@ class ASH_EXPORT ShelfLayoutManager :
// False when neither the auto hide timer nor the timer task are running.
bool mouse_over_shelf_when_auto_hide_timer_started_;
- // EventFilter used to detect when user moves the mouse over the launcher to
- // trigger showing the launcher.
+ // EventFilter used to detect when user moves the mouse over the shelf to
+ // trigger showing the shelf.
scoped_ptr<AutoHideEventFilter> auto_hide_event_filter_;
// EventFilter used to detect when user issues a gesture on a bezel sensor.
« no previous file with comments | « ash/shelf/shelf_delegate.h ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698