Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Side by Side Diff: chrome/browser/ui/panels/panel.h

Issue 10066032: Enable user resizing for docked Panels (GTK and Mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/panels/overflow_panel_strip.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/overflow_panel_strip.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698