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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 // Handles keyboard events coming back from the renderer. | 245 // Handles keyboard events coming back from the renderer. |
246 void HandleKeyboardEvent(const content::NativeWebKeyboardEvent& event); | 246 void HandleKeyboardEvent(const content::NativeWebKeyboardEvent& event); |
247 | 247 |
248 // Whether the panel window is always on top. | 248 // Whether the panel window is always on top. |
249 void SetAlwaysOnTop(bool on_top); | 249 void SetAlwaysOnTop(bool on_top); |
250 | 250 |
251 // Sets whether the panel is shown in preview mode. When the panel is | 251 // Sets whether the panel is shown in preview mode. When the panel is |
252 // being dragged, it is in preview mode. | 252 // being dragged, it is in preview mode. |
253 void SetPreviewMode(bool in_preview_mode); | 253 void SetPreviewMode(bool in_preview_mode); |
254 | 254 |
| 255 // Sets up the panel for being resizable by the user - for example, |
| 256 // enables the resize mouse cursors when mouse is hovering over the edges. |
| 257 void EnableResizeByMouse(bool enable); |
| 258 |
255 // Sets whether the minimize or restore button, if any, are visible. | 259 // Sets whether the minimize or restore button, if any, are visible. |
256 void UpdateMinimizeRestoreButtonVisibility(); | 260 void UpdateMinimizeRestoreButtonVisibility(); |
257 | 261 |
258 // Changes the preferred size to acceptable based on min_size() and max_size() | 262 // Changes the preferred size to acceptable based on min_size() and max_size() |
259 gfx::Size ClampSize(const gfx::Size& size) const; | 263 gfx::Size ClampSize(const gfx::Size& size) const; |
260 | 264 |
261 // Called when the panel's active state changes. | 265 // Called when the panel's active state changes. |
262 // |active| is true if panel became active. | 266 // |active| is true if panel became active. |
263 void OnActiveStateChanged(bool active); | 267 void OnActiveStateChanged(bool active); |
264 | 268 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 | 400 |
397 // Icon showed in the task bar. | 401 // Icon showed in the task bar. |
398 gfx::Image app_icon_; | 402 gfx::Image app_icon_; |
399 | 403 |
400 base::WeakPtrFactory<Panel> image_loader_ptr_factory_; | 404 base::WeakPtrFactory<Panel> image_loader_ptr_factory_; |
401 | 405 |
402 DISALLOW_COPY_AND_ASSIGN(Panel); | 406 DISALLOW_COPY_AND_ASSIGN(Panel); |
403 }; | 407 }; |
404 | 408 |
405 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 409 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
OLD | NEW |