| OLD | NEW |
| 1 // Copyright (c) 2012 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_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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 const content::NotificationSource& source, | 212 const content::NotificationSource& source, |
| 213 const content::NotificationDetails& details) OVERRIDE; | 213 const content::NotificationDetails& details) OVERRIDE; |
| 214 | 214 |
| 215 // Construct a native panel BrowserWindow implementation for the specified | 215 // Construct a native panel BrowserWindow implementation for the specified |
| 216 // |browser|. | 216 // |browser|. |
| 217 static NativePanel* CreateNativePanel(Browser* browser, | 217 static NativePanel* CreateNativePanel(Browser* browser, |
| 218 Panel* panel, | 218 Panel* panel, |
| 219 const gfx::Rect& bounds); | 219 const gfx::Rect& bounds); |
| 220 | 220 |
| 221 // Invoked when the native panel has detected a mouse click on the | 221 // Invoked when the native panel has detected a mouse click on the |
| 222 // panel's titlebar. Behavior of the click may be modified as | 222 // panel's titlebar, minimize or restore buttons. Behavior of the |
| 223 // indicated by |modifier|. | 223 // click may be modified as indicated by |modifier|. |
| 224 void OnTitlebarClicked(panel::ClickModifier modifier); | 224 void OnTitlebarClicked(panel::ClickModifier modifier); |
| 225 void OnMinimizeButtonClicked(panel::ClickModifier modifier); |
| 226 void OnRestoreButtonClicked(panel::ClickModifier modifier); |
| 225 | 227 |
| 226 // Used on platforms where the panel cannot determine its window size | 228 // Used on platforms where the panel cannot determine its window size |
| 227 // until the window has been created. (e.g. GTK) | 229 // until the window has been created. (e.g. GTK) |
| 228 void OnWindowSizeAvailable(); | 230 void OnWindowSizeAvailable(); |
| 229 | 231 |
| 230 // Asynchronous completion of panel close request. | 232 // Asynchronous completion of panel close request. |
| 231 void OnNativePanelClosed(); | 233 void OnNativePanelClosed(); |
| 232 | 234 |
| 233 NativePanel* native_panel() { return native_panel_; } | 235 NativePanel* native_panel() { return native_panel_; } |
| 234 Browser* browser() const { return browser_; } | 236 Browser* browser() const { return browser_; } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 AttentionMode attention_mode_; | 363 AttentionMode attention_mode_; |
| 362 | 364 |
| 363 ExpansionState expansion_state_; | 365 ExpansionState expansion_state_; |
| 364 | 366 |
| 365 content::NotificationRegistrar registrar_; | 367 content::NotificationRegistrar registrar_; |
| 366 | 368 |
| 367 DISALLOW_COPY_AND_ASSIGN(Panel); | 369 DISALLOW_COPY_AND_ASSIGN(Panel); |
| 368 }; | 370 }; |
| 369 | 371 |
| 370 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 372 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
| OLD | NEW |