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

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

Issue 8587001: Have ExtensionHost use TabContents instead of RenderViewHost. Try #3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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_POPUP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "chrome/browser/extensions/extension_host.h" 10 #include "chrome/browser/extensions/extension_host.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual void BubbleGotFocus(BrowserBubble* bubble); 76 virtual void BubbleGotFocus(BrowserBubble* bubble);
77 virtual void BubbleLostFocus(BrowserBubble* bubble, 77 virtual void BubbleLostFocus(BrowserBubble* bubble,
78 bool lost_focus_to_child); 78 bool lost_focus_to_child);
79 79
80 // content::NotificationObserver overrides. 80 // content::NotificationObserver overrides.
81 virtual void Observe(int type, 81 virtual void Observe(int type,
82 const content::NotificationSource& source, 82 const content::NotificationSource& source,
83 const content::NotificationDetails& details); 83 const content::NotificationDetails& details);
84 84
85 // ExtensionView::Container overrides. 85 // ExtensionView::Container overrides.
86 virtual void OnExtensionMouseMove(ExtensionView* view) { }
87 virtual void OnExtensionMouseLeave(ExtensionView* view) { }
88 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view); 86 virtual void OnExtensionPreferredSizeChanged(ExtensionView* view);
89 87
90 // The min/max height of popups. 88 // The min/max height of popups.
91 static const int kMinWidth; 89 static const int kMinWidth;
92 static const int kMinHeight; 90 static const int kMinHeight;
93 static const int kMaxWidth; 91 static const int kMaxWidth;
94 static const int kMaxHeight; 92 static const int kMaxHeight;
95 93
96 private: 94 private:
97 ExtensionPopup(Browser* browser, 95 ExtensionPopup(Browser* browser,
(...skipping 21 matching lines...) Expand all
119 117
120 content::NotificationRegistrar registrar_; 118 content::NotificationRegistrar registrar_;
121 119
122 // The observer of this popup. 120 // The observer of this popup.
123 Observer* observer_; 121 Observer* observer_;
124 122
125 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); 123 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup);
126 }; 124 };
127 125
128 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ 126 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698