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

Unified Diff: chrome/browser/ui/views/extensions/shell_frame_win.h

Issue 9254046: Custom frame UI for platform apps on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/extensions/shell_frame_win.h
diff --git a/chrome/browser/ui/views/extensions/shell_frame_win.h b/chrome/browser/ui/views/extensions/shell_frame_win.h
new file mode 100755
index 0000000000000000000000000000000000000000..65f04747d48a05467c220f29c44ed6328783ebdd
--- /dev/null
+++ b/chrome/browser/ui/views/extensions/shell_frame_win.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_FRAME_WIN_H_
+#define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_FRAME_WIN_H_
+#pragma once
+
+#include "ui/views/widget/native_widget_win.h"
+#include "chrome/browser/ui/extensions/native_shell_frame.h"
+
+namespace views {
+class NativeWidget;
+}
+
+class ShellFrameWin : public views::NativeWidgetWin, public NativeShellFrame {
+ public:
+ explicit ShellFrameWin(views::Widget* delegate);
+
+ virtual views::NativeWidget* AsNativeWidget() OVERRIDE;
+ virtual const views::NativeWidget* AsNativeWidget() const OVERRIDE;
+
+ protected:
+ virtual gfx::Insets GetClientAreaInsets() const OVERRIDE;
+ virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param) OVERRIDE;
+ virtual LRESULT OnCreate(CREATESTRUCT* create_struct) OVERRIDE;
+ virtual LRESULT OnNCHitTest(const CPoint& point) OVERRIDE;
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_FRAME_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698