| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_BROWSER_UI_VIEWS_NEW_BACK_SHORTCUT_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_NEW_BACK_SHORTCUT_BUBBLE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_NEW_BACK_SHORTCUT_BUBBLE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_NEW_BACK_SHORTCUT_BUBBLE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
| 13 #include "ui/gfx/animation/animation_delegate.h" | 13 #include "ui/gfx/animation/animation_delegate.h" |
| 14 | 14 |
| 15 class ExclusiveAccessBubbleViewsContext; | 15 class ExclusiveAccessBubbleViewsContext; |
| 16 class SubtleNotificationView; | 16 class SubtleNotificationView; |
| 17 | 17 |
| 18 namespace gfx { | 18 namespace gfx { |
| 19 class Animation; | 19 class Animation; |
| 20 class Rect; | 20 class Rect; |
| 21 class SlideAnimation; | 21 class SlideAnimation; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace views { | 24 namespace views { |
| 25 class View; | |
| 26 class Widget; | 25 class Widget; |
| 27 } | 26 } |
| 28 | 27 |
| 29 // NewBackShortcutBubble shows a short-lived notification along the top of the | 28 // NewBackShortcutBubble shows a short-lived notification along the top of the |
| 30 // screen when the user presses the old Back/Forward shortcut, telling them how | 29 // screen when the user presses the old Back/Forward shortcut, telling them how |
| 31 // to use the new shortcut. This will only be available for a few milestones to | 30 // to use the new shortcut. This will only be available for a few milestones to |
| 32 // let users adapt. | 31 // let users adapt. |
| 33 // TODO(mgiuca): Remove this in M54 (https://crbug.com/610039). | 32 // TODO(mgiuca): Remove this in M54 (https://crbug.com/610039). |
| 34 class NewBackShortcutBubble : public gfx::AnimationDelegate { | 33 class NewBackShortcutBubble : public gfx::AnimationDelegate { |
| 35 public: | 34 public: |
| (...skipping 28 matching lines...) Expand all Loading... |
| 64 | 63 |
| 65 // The contents of the popup. | 64 // The contents of the popup. |
| 66 SubtleNotificationView* const view_; | 65 SubtleNotificationView* const view_; |
| 67 | 66 |
| 68 views::Widget* const popup_; | 67 views::Widget* const popup_; |
| 69 | 68 |
| 70 DISALLOW_COPY_AND_ASSIGN(NewBackShortcutBubble); | 69 DISALLOW_COPY_AND_ASSIGN(NewBackShortcutBubble); |
| 71 }; | 70 }; |
| 72 | 71 |
| 73 #endif // CHROME_BROWSER_UI_VIEWS_NEW_BACK_SHORTCUT_BUBBLE_H_ | 72 #endif // CHROME_BROWSER_UI_VIEWS_NEW_BACK_SHORTCUT_BUBBLE_H_ |
| OLD | NEW |