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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_installed_bubble.h

Issue 6622002: Do all OOLing in the views code. linux_views now builds clean with the clang plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "chrome/browser/ui/views/info_bubble.h" 10 #include "chrome/browser/ui/views/info_bubble.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // icon of the extension. 47 // icon of the extension.
48 static void Show(const Extension* extension, Browser *browser, SkBitmap icon); 48 static void Show(const Extension* extension, Browser *browser, SkBitmap icon);
49 49
50 private: 50 private:
51 friend class base::RefCountedThreadSafe<ExtensionInstalledBubble>; 51 friend class base::RefCountedThreadSafe<ExtensionInstalledBubble>;
52 52
53 // Private ctor. Registers a listener for EXTENSION_LOADED. 53 // Private ctor. Registers a listener for EXTENSION_LOADED.
54 ExtensionInstalledBubble(const Extension* extension, Browser *browser, 54 ExtensionInstalledBubble(const Extension* extension, Browser *browser,
55 SkBitmap icon); 55 SkBitmap icon);
56 56
57 ~ExtensionInstalledBubble() {} 57 virtual ~ExtensionInstalledBubble();
58 58
59 // Shows the bubble. Called internally via PostTask. 59 // Shows the bubble. Called internally via PostTask.
60 void ShowInternal(); 60 void ShowInternal();
61 61
62 // NotificationObserver 62 // NotificationObserver
63 virtual void Observe(NotificationType type, 63 virtual void Observe(NotificationType type,
64 const NotificationSource& source, 64 const NotificationSource& source,
65 const NotificationDetails& details); 65 const NotificationDetails& details);
66 66
67 // InfoBubbleDelegate 67 // InfoBubbleDelegate
68 virtual void InfoBubbleClosing(InfoBubble* info_bubble, 68 virtual void InfoBubbleClosing(InfoBubble* info_bubble,
69 bool closed_by_escape); 69 bool closed_by_escape);
70 virtual bool CloseOnEscape() { return true; } 70 virtual bool CloseOnEscape();
71 virtual bool FadeInOnShow() { return true; } 71 virtual bool FadeInOnShow();
72 72
73 const Extension* extension_; 73 const Extension* extension_;
74 Browser* browser_; 74 Browser* browser_;
75 SkBitmap icon_; 75 SkBitmap icon_;
76 NotificationRegistrar registrar_; 76 NotificationRegistrar registrar_;
77 InstalledBubbleContent* bubble_content_; 77 InstalledBubbleContent* bubble_content_;
78 BubbleType type_; 78 BubbleType type_;
79 79
80 // How many times we've deferred due to animations being in progress. 80 // How many times we've deferred due to animations being in progress.
81 int animation_wait_retries_; 81 int animation_wait_retries_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubble); 83 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubble);
84 }; 84 };
85 85
86 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_ 86 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698