| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
| 10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // content::NotificationObserver | 58 // content::NotificationObserver |
| 59 virtual void Observe(int type, | 59 virtual void Observe(int type, |
| 60 const content::NotificationSource& source, | 60 const content::NotificationSource& source, |
| 61 const content::NotificationDetails& details) OVERRIDE; | 61 const content::NotificationDetails& details) OVERRIDE; |
| 62 | 62 |
| 63 // views::WidgetDelegate | 63 // views::WidgetDelegate |
| 64 virtual void WindowClosing() OVERRIDE; | 64 virtual void WindowClosing() OVERRIDE; |
| 65 | 65 |
| 66 // views::BubbleDelegate | 66 // views::BubbleDelegate |
| 67 virtual gfx::Point GetAnchorPoint() OVERRIDE; | 67 virtual gfx::Rect GetAnchorRect() OVERRIDE; |
| 68 virtual views::BubbleBorder::ArrowLocation GetArrowLocation() const OVERRIDE; | 68 virtual views::BubbleBorder::ArrowLocation GetArrowLocation() const OVERRIDE; |
| 69 | 69 |
| 70 const Extension* extension_; | 70 const Extension* extension_; |
| 71 Browser* browser_; | 71 Browser* browser_; |
| 72 SkBitmap icon_; | 72 SkBitmap icon_; |
| 73 content::NotificationRegistrar registrar_; | 73 content::NotificationRegistrar registrar_; |
| 74 BubbleType type_; | 74 BubbleType type_; |
| 75 | 75 |
| 76 // How many times we've deferred due to animations being in progress. | 76 // How many times we've deferred due to animations being in progress. |
| 77 int animation_wait_retries_; | 77 int animation_wait_retries_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubble); | 79 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubble); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ | 82 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ |
| OLD | NEW |