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

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

Issue 23922003: Revert 221651 "Switch to doing user-resizing via system for pane..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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
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 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
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
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_
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/ui/panels/native_panel.h ('k') | trunk/src/chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698