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

Unified Diff: ash/wm/panel_frame_view.h

Issue 11363250: Allow Chrome apps to create Ash Panels (apps v2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback and add unit test for PanelLayoutManager minimize/restore Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/panel_frame_view.h
diff --git a/ash/wm/panel_frame_view.h b/ash/wm/panel_frame_view.h
index 20ab18b3f22793ac6d5d7a1ca6333f48a307e80a..c96deb3668aeaa1538fa5ff9366c20e205bf86e8 100644
--- a/ash/wm/panel_frame_view.h
+++ b/ash/wm/panel_frame_view.h
@@ -8,6 +8,7 @@
#include "ash/ash_export.h"
#include "base/basictypes.h"
#include "ui/aura/aura_export.h"
+#include "ui/gfx/insets.h"
#include "ui/views/window/non_client_view.h"
#include "ui/views/controls/button/button.h" // ButtonListener
@@ -22,10 +23,19 @@ class FramePainter;
class ASH_EXPORT PanelFrameView : public views::NonClientFrameView,
public views::ButtonListener {
public:
- explicit PanelFrameView(views::Widget* frame);
+ enum FrameType {
+ FRAME_NONE,
+ FRAME_ASH
+ };
+
+ PanelFrameView(views::Widget* frame, FrameType frame_type);
virtual ~PanelFrameView();
+ gfx::Insets GetFrameInsets() const;
+
private:
+ void InitFramePainter(views::Widget* frame);
+
// Overridden from views::NonClientFrameView:
virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
virtual gfx::Rect GetWindowBoundsForClientBounds(

Powered by Google App Engine
This is Rietveld 408576698