| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/extensions/extension_host.h" | 10 #include "chrome/browser/extensions/extension_host.h" |
| 11 #include "chrome/browser/ui/views/extensions/extension_view.h" | 11 #include "chrome/browser/ui/views/extensions/extension_view.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 static const int kMaxWidth; | 65 static const int kMaxWidth; |
| 66 static const int kMaxHeight; | 66 static const int kMaxHeight; |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 ExtensionPopup(Browser* browser, | 69 ExtensionPopup(Browser* browser, |
| 70 ExtensionHost* host, | 70 ExtensionHost* host, |
| 71 views::View* anchor_view, | 71 views::View* anchor_view, |
| 72 views::BubbleBorder::ArrowLocation arrow_location, | 72 views::BubbleBorder::ArrowLocation arrow_location, |
| 73 bool inspect_with_devtools); | 73 bool inspect_with_devtools); |
| 74 | 74 |
| 75 // Show the bubble, focus on its content, and register listeners. |
| 76 void ShowBubble(); |
| 77 |
| 75 // The contained host for the view. | 78 // The contained host for the view. |
| 76 scoped_ptr<ExtensionHost> extension_host_; | 79 scoped_ptr<ExtensionHost> extension_host_; |
| 77 | 80 |
| 78 // Flag used to indicate if the pop-up should open a devtools window once | 81 // Flag used to indicate if the pop-up should open a devtools window once |
| 79 // it is shown inspecting it. | 82 // it is shown inspecting it. |
| 80 bool inspect_with_devtools_; | 83 bool inspect_with_devtools_; |
| 81 | 84 |
| 82 content::NotificationRegistrar registrar_; | 85 content::NotificationRegistrar registrar_; |
| 83 | 86 |
| 84 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); | 87 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); |
| 85 }; | 88 }; |
| 86 | 89 |
| 87 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ | 90 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ |
| OLD | NEW |