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_PANELS_PANEL_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
10 | 10 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 126 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
127 const gfx::Rect& bounds) OVERRIDE; | 127 const gfx::Rect& bounds) OVERRIDE; |
128 #if defined(OS_CHROMEOS) | 128 #if defined(OS_CHROMEOS) |
129 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) OVERRIDE; | 129 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) OVERRIDE; |
130 #endif | 130 #endif |
131 | 131 |
132 // Construct a native panel BrowserWindow implementation for the specified | 132 // Construct a native panel BrowserWindow implementation for the specified |
133 // |browser|. | 133 // |browser|. |
134 static BrowserWindow* CreateNativePanel(Browser* browser, Panel* panel); | 134 static BrowserWindow* CreateNativePanel(Browser* browser, Panel* panel); |
135 | 135 |
| 136 // Gets the extension from the browser that a panel is created from. |
| 137 // Returns NULL if it cannot be found. |
| 138 static const Extension* GetExtension(Browser* browser); |
| 139 |
136 #ifdef UNIT_TEST | 140 #ifdef UNIT_TEST |
137 BrowserWindow* browser_window() { return browser_window_.get(); } | 141 BrowserWindow* browser_window() { return browser_window_.get(); } |
138 #endif | 142 #endif |
139 | 143 |
140 #ifndef NDEBUG | 144 #ifndef NDEBUG |
141 bool closing() const { return closing_; } | 145 bool closing() const { return closing_; } |
142 #endif | 146 #endif |
143 | 147 |
144 protected: | 148 protected: |
145 virtual void DestroyBrowser() OVERRIDE; | 149 virtual void DestroyBrowser() OVERRIDE; |
(...skipping 27 matching lines...) Expand all Loading... |
173 bool closing_; | 177 bool closing_; |
174 #endif | 178 #endif |
175 | 179 |
176 // Is the panel minimized? | 180 // Is the panel minimized? |
177 bool minimized_; | 181 bool minimized_; |
178 | 182 |
179 DISALLOW_COPY_AND_ASSIGN(Panel); | 183 DISALLOW_COPY_AND_ASSIGN(Panel); |
180 }; | 184 }; |
181 | 185 |
182 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 186 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
OLD | NEW |