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

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

Issue 13853010: Make panels turn on or off shadow effect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 void MoveByInstantly(const gfx::Vector2d& delta_origin); 298 void MoveByInstantly(const gfx::Vector2d& delta_origin);
299 299
300 // Applies |corner_style| to the panel window. 300 // Applies |corner_style| to the panel window.
301 void SetWindowCornerStyle(panel::CornerStyle corner_style); 301 void SetWindowCornerStyle(panel::CornerStyle corner_style);
302 302
303 // Performs the system minimize for the panel, i.e. becoming iconic. 303 // Performs the system minimize for the panel, i.e. becoming iconic.
304 void MinimizeBySystem(); 304 void MinimizeBySystem();
305 305
306 bool IsMinimizedBySystem() const; 306 bool IsMinimizedBySystem() const;
307 307
308 // Turns on/off the shadow effect around the window shape.
309 void SetHasShadow(bool has_shadow);
Dmitry Titov 2013/04/16 23:26:47 This can be the same name as in NativePanel, right
jianli 2013/04/16 23:46:03 Done.
310
308 protected: 311 protected:
309 // Panel can only be created using PanelManager::CreatePanel() or subclass. 312 // Panel can only be created using PanelManager::CreatePanel() or subclass.
310 // |app_name| is the default title for Panels when the page content does not 313 // |app_name| is the default title for Panels when the page content does not
311 // provide a title. For extensions, this is usually the application name 314 // provide a title. For extensions, this is usually the application name
312 // generated from the extension id. 315 // generated from the extension id.
313 Panel(const std::string& app_name, 316 Panel(const std::string& app_name,
314 const gfx::Size& min_size, const gfx::Size& max_size); 317 const gfx::Size& min_size, const gfx::Size& max_size);
315 318
316 private: 319 private:
317 friend class PanelManager; 320 friend class PanelManager;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 394
392 // Icon showed in the task bar. 395 // Icon showed in the task bar.
393 gfx::Image app_icon_; 396 gfx::Image app_icon_;
394 397
395 base::WeakPtrFactory<Panel> image_loader_ptr_factory_; 398 base::WeakPtrFactory<Panel> image_loader_ptr_factory_;
396 399
397 DISALLOW_COPY_AND_ASSIGN(Panel); 400 DISALLOW_COPY_AND_ASSIGN(Panel);
398 }; 401 };
399 402
400 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ 403 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698