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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 252 |
253 ExpansionState expansion_state() const { return expansion_state_; } | 253 ExpansionState expansion_state() const { return expansion_state_; } |
254 const gfx::Size& min_size() const { return min_size_; } | 254 const gfx::Size& min_size() const { return min_size_; } |
255 const gfx::Size& max_size() const { return max_size_; } | 255 const gfx::Size& max_size() const { return max_size_; } |
256 bool auto_resizable() const { return auto_resizable_; } | 256 bool auto_resizable() const { return auto_resizable_; } |
257 | 257 |
258 bool in_preview_mode() const { return in_preview_mode_; } | 258 bool in_preview_mode() const { return in_preview_mode_; } |
259 | 259 |
260 bool draggable() const; | 260 bool draggable() const; |
261 | 261 |
262 bool CanResizeByMouse() const; | 262 panel::Resizability CanResizeByMouse() const; |
263 | 263 |
264 AttentionMode attention_mode() const { return attention_mode_; } | 264 AttentionMode attention_mode() const { return attention_mode_; } |
265 void set_attention_mode(AttentionMode attention_mode) { | 265 void set_attention_mode(AttentionMode attention_mode) { |
266 attention_mode_ = attention_mode; | 266 attention_mode_ = attention_mode; |
267 } | 267 } |
268 | 268 |
269 // The restored size is the size of the panel when it is expanded. | 269 // The restored size is the size of the panel when it is expanded. |
270 gfx::Size restored_size() const { return restored_size_; } | 270 gfx::Size restored_size() const { return restored_size_; } |
271 void set_restored_size(const gfx::Size& size) { restored_size_ = size; } | 271 void set_restored_size(const gfx::Size& size) { restored_size_ = size; } |
272 | 272 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 AttentionMode attention_mode_; | 377 AttentionMode attention_mode_; |
378 | 378 |
379 ExpansionState expansion_state_; | 379 ExpansionState expansion_state_; |
380 | 380 |
381 content::NotificationRegistrar registrar_; | 381 content::NotificationRegistrar registrar_; |
382 | 382 |
383 DISALLOW_COPY_AND_ASSIGN(Panel); | 383 DISALLOW_COPY_AND_ASSIGN(Panel); |
384 }; | 384 }; |
385 | 385 |
386 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 386 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
OLD | NEW |