Index: ash/shelf/shelf_widget.cc |
diff --git a/ash/shelf/shelf_widget.cc b/ash/shelf/shelf_widget.cc |
index f3f1f2912218687f7baab0faf7209d8c03f187c3..68ab0bad3c96c7c519931ffb3ae201cf7c5429fa 100644 |
--- a/ash/shelf/shelf_widget.cc |
+++ b/ash/shelf/shelf_widget.cc |
@@ -52,7 +52,7 @@ const int kTimeToUnDimMs = 200; // Fast in activating. |
// Class used to slightly dim shelf items when maximized and visible. |
class DimmerView : public views::View, |
public views::WidgetDelegate, |
- ash::internal::BackgroundAnimatorDelegate { |
+ ash::BackgroundAnimatorDelegate { |
public: |
// If |disable_dimming_animations_for_test| is set, all alpha animations will |
// be performed instantly. |
@@ -74,7 +74,7 @@ class DimmerView : public views::View, |
return View::GetWidget(); |
} |
- // ash::internal::BackgroundAnimatorDelegate overrides: |
+ // ash::BackgroundAnimatorDelegate overrides: |
virtual void UpdateBackground(int alpha) OVERRIDE { |
alpha_ = alpha; |
SchedulePaint(); |
@@ -126,7 +126,7 @@ class DimmerView : public views::View, |
bool disable_dimming_animations_for_test_; |
// The animator for the background transitions. |
- ash::internal::BackgroundAnimator background_animator_; |
+ ash::BackgroundAnimator background_animator_; |
// Notification of entering / exiting of the shelf area by mouse. |
scoped_ptr<DimmerEventFilter> event_filter_; |
@@ -234,7 +234,7 @@ void DimmerView::DimmerEventFilter::OnTouchEvent(ui::TouchEvent* event) { |
touch_inside_ = touch_inside; |
} |
-using ash::internal::ShelfLayoutManager; |
+using ash::ShelfLayoutManager; |
// ShelfWindowTargeter makes it easier to resize windows with the mouse when the |
// window-edge slightly overlaps with the shelf edge. The targeter also makes it |
@@ -313,18 +313,16 @@ namespace ash { |
// sizes it to the width of the shelf minus the size of the status area. |
class ShelfWidget::DelegateView : public views::WidgetDelegate, |
public views::AccessiblePaneView, |
- public internal::BackgroundAnimatorDelegate, |
+ public BackgroundAnimatorDelegate, |
public aura::WindowObserver { |
public: |
explicit DelegateView(ShelfWidget* shelf); |
virtual ~DelegateView(); |
- void set_focus_cycler(internal::FocusCycler* focus_cycler) { |
+ void set_focus_cycler(FocusCycler* focus_cycler) { |
focus_cycler_ = focus_cycler; |
} |
- internal::FocusCycler* focus_cycler() { |
- return focus_cycler_; |
- } |
+ FocusCycler* focus_cycler() { return focus_cycler_; } |
ui::Layer* opaque_background() { return &opaque_background_; } |
@@ -383,7 +381,7 @@ class ShelfWidget::DelegateView : public views::WidgetDelegate, |
private: |
ShelfWidget* shelf_; |
scoped_ptr<views::Widget> dimmer_; |
- internal::FocusCycler* focus_cycler_; |
+ FocusCycler* focus_cycler_; |
int alpha_; |
ui::Layer opaque_background_; |
@@ -601,7 +599,7 @@ void ShelfWidget::DelegateView::UpdateBackground(int alpha) { |
ShelfWidget::ShelfWidget(aura::Window* shelf_container, |
aura::Window* status_container, |
- internal::WorkspaceController* workspace_controller) |
+ WorkspaceController* workspace_controller) |
: delegate_view_(new DelegateView(this)), |
background_animator_(delegate_view_, 0, kShelfBackgroundAlpha), |
activating_as_fallback_(false), |
@@ -619,7 +617,7 @@ ShelfWidget::ShelfWidget(aura::Window* shelf_container, |
SetContentsView(delegate_view_); |
delegate_view_->SetParentLayer(GetLayer()); |
- status_area_widget_ = new internal::StatusAreaWidget(status_container); |
+ status_area_widget_ = new StatusAreaWidget(status_container); |
status_area_widget_->CreateTrayViews(); |
if (Shell::GetInstance()->session_state_delegate()-> |
IsActiveUserSessionStarted()) { |
@@ -627,14 +625,13 @@ ShelfWidget::ShelfWidget(aura::Window* shelf_container, |
} |
Shell::GetInstance()->focus_cycler()->AddWidget(status_area_widget_); |
- shelf_layout_manager_ = new internal::ShelfLayoutManager(this); |
+ shelf_layout_manager_ = new ShelfLayoutManager(this); |
shelf_layout_manager_->AddObserver(this); |
shelf_container->SetLayoutManager(shelf_layout_manager_); |
shelf_layout_manager_->set_workspace_controller(workspace_controller); |
workspace_controller->SetShelf(shelf_layout_manager_); |
- status_container->SetLayoutManager( |
- new internal::StatusAreaLayoutManager(this)); |
+ status_container->SetLayoutManager(new StatusAreaLayoutManager(this)); |
shelf_container->SetEventTargeter(scoped_ptr<ui::EventTargeter>(new |
ShelfWindowTargeter(shelf_container, shelf_layout_manager_))); |
@@ -743,8 +740,7 @@ void ShelfWidget::CreateShelf() { |
SetFocusCycler(shell->focus_cycler()); |
// Inform the root window controller. |
- internal::RootWindowController::ForWindow(window_container_) |
- ->OnShelfCreated(); |
+ RootWindowController::ForWindow(window_container_)->OnShelfCreated(); |
shelf_->SetVisible( |
shell->session_state_delegate()->IsActiveUserSessionStarted()); |
@@ -761,13 +757,13 @@ void ShelfWidget::SetShelfVisibility(bool visible) { |
shelf_->SetVisible(visible); |
} |
-void ShelfWidget::SetFocusCycler(internal::FocusCycler* focus_cycler) { |
+void ShelfWidget::SetFocusCycler(FocusCycler* focus_cycler) { |
delegate_view_->set_focus_cycler(focus_cycler); |
if (focus_cycler) |
focus_cycler->AddWidget(this); |
} |
-internal::FocusCycler* ShelfWidget::GetFocusCycler() { |
+FocusCycler* ShelfWidget::GetFocusCycler() { |
return delegate_view_->focus_cycler(); |
} |