| Index: athena/home/home_card_impl.cc
|
| diff --git a/athena/home/home_card_impl.cc b/athena/home/home_card_impl.cc
|
| index 9b2e49f620d73b3601c4596cf5664c462baf65e5..5a01a32c0b9fda7e74ac6bf7c6282f564f7ee0bb 100644
|
| --- a/athena/home/home_card_impl.cc
|
| +++ b/athena/home/home_card_impl.cc
|
| @@ -71,7 +71,7 @@ class HomeCardLayoutManager : public aura::LayoutManager {
|
| : home_card_(NULL),
|
| minimized_layer_(NULL) {}
|
|
|
| - virtual ~HomeCardLayoutManager() {}
|
| + ~HomeCardLayoutManager() override {}
|
|
|
| void Layout(bool animate, gfx::Tween::Type tween_type) {
|
| // |home_card| could be detached from the root window (e.g. when it is being
|
| @@ -104,28 +104,28 @@ class HomeCardLayoutManager : public aura::LayoutManager {
|
| }
|
|
|
| // aura::LayoutManager:
|
| - virtual void OnWindowResized() override {
|
| + void OnWindowResized() override {
|
| Layout(false, gfx::Tween::LINEAR);
|
| UpdateMinimizedHomeBounds();
|
| }
|
| - virtual void OnWindowAddedToLayout(aura::Window* child) override {
|
| + void OnWindowAddedToLayout(aura::Window* child) override {
|
| if (!home_card_) {
|
| home_card_ = child;
|
| Layout(false, gfx::Tween::LINEAR);
|
| }
|
| }
|
| - virtual void OnWillRemoveWindowFromLayout(aura::Window* child) override {
|
| + void OnWillRemoveWindowFromLayout(aura::Window* child) override {
|
| if (home_card_ == child)
|
| home_card_ = NULL;
|
| }
|
| - virtual void OnWindowRemovedFromLayout(aura::Window* child) override {
|
| + void OnWindowRemovedFromLayout(aura::Window* child) override {
|
| }
|
| - virtual void OnChildWindowVisibilityChanged(aura::Window* child,
|
| + void OnChildWindowVisibilityChanged(aura::Window* child,
|
| bool visible) override {
|
| if (home_card_ == child)
|
| Layout(false, gfx::Tween::LINEAR);
|
| }
|
| - virtual void SetChildBounds(aura::Window* child,
|
| + void SetChildBounds(aura::Window* child,
|
| const gfx::Rect& requested_bounds) override {
|
| SetChildBoundsDirect(child, requested_bounds);
|
| }
|
| @@ -154,7 +154,7 @@ class HomeCardView : public views::WidgetDelegateView,
|
| AddChildView(main_view_);
|
| }
|
|
|
| - virtual ~HomeCardView() { main_view_->RemoveObserver(this); }
|
| + ~HomeCardView() override { main_view_->RemoveObserver(this); }
|
|
|
| void SetStateProgress(HomeCard::State from_state,
|
| HomeCard::State to_state,
|
| @@ -185,7 +185,7 @@ class HomeCardView : public views::WidgetDelegateView,
|
| }
|
|
|
| // views::View:
|
| - virtual void OnGestureEvent(ui::GestureEvent* event) override {
|
| + void OnGestureEvent(ui::GestureEvent* event) override {
|
| if (!gesture_manager_ &&
|
| event->type() == ui::ET_GESTURE_SCROLL_BEGIN) {
|
| gesture_manager_.reset(new HomeCardGestureManager(
|
| @@ -196,7 +196,7 @@ class HomeCardView : public views::WidgetDelegateView,
|
| if (gesture_manager_)
|
| gesture_manager_->ProcessGestureEvent(event);
|
| }
|
| - virtual bool OnMousePressed(const ui::MouseEvent& event) override {
|
| + bool OnMousePressed(const ui::MouseEvent& event) override {
|
| if (HomeCard::Get()->GetState() == HomeCard::VISIBLE_MINIMIZED &&
|
| event.IsLeftMouseButton() && event.GetClickCount() == 1) {
|
| athena::WindowManager::Get()->EnterOverview();
|
| @@ -213,12 +213,12 @@ class HomeCardView : public views::WidgetDelegateView,
|
| }
|
|
|
| // views::WidgetDelegate:
|
| - virtual views::View* GetContentsView() override {
|
| + views::View* GetContentsView() override {
|
| return this;
|
| }
|
|
|
| // AthenaStartPageView::Observer:
|
| - virtual void OnLayoutStateChanged(float new_state) override {
|
| + void OnLayoutStateChanged(float new_state) override {
|
| if (new_state == 1.0f)
|
| HomeCard::Get()->SetState(HomeCard::VISIBLE_CENTERED);
|
| }
|
|
|