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

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

Issue 23918002: Switch to doing user-resizing via system for panels on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to reland 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
« no previous file with comments | « chrome/browser/ui/panels/native_panel.h ('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 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
259 // Sets whether the minimize or restore button, if any, are visible. 255 // Sets whether the minimize or restore button, if any, are visible.
260 void UpdateMinimizeRestoreButtonVisibility(); 256 void UpdateMinimizeRestoreButtonVisibility();
261 257
262 // Changes the preferred size to acceptable based on min_size() and max_size() 258 // Changes the preferred size to acceptable based on min_size() and max_size()
263 gfx::Size ClampSize(const gfx::Size& size) const; 259 gfx::Size ClampSize(const gfx::Size& size) const;
264 260
265 // Called when the panel's active state changes. 261 // Called when the panel's active state changes.
266 // |active| is true if panel became active. 262 // |active| is true if panel became active.
267 void OnActiveStateChanged(bool active); 263 void OnActiveStateChanged(bool active);
268 264
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 396
401 // Icon showed in the task bar. 397 // Icon showed in the task bar.
402 gfx::Image app_icon_; 398 gfx::Image app_icon_;
403 399
404 base::WeakPtrFactory<Panel> image_loader_ptr_factory_; 400 base::WeakPtrFactory<Panel> image_loader_ptr_factory_;
405 401
406 DISALLOW_COPY_AND_ASSIGN(Panel); 402 DISALLOW_COPY_AND_ASSIGN(Panel);
407 }; 403 };
408 404
409 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ 405 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/native_panel.h ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698