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

Side by Side Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.h

Issue 9254046: Custom frame UI for platform apps on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rearchitect to use NonClientFrameView Created 8 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view.h" 9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view.h"
10 #include "ui/views/widget/native_widget_win.h" 10 #include "ui/views/widget/native_widget_win.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual LRESULT OnReflectedMessage(UINT msg, 57 virtual LRESULT OnReflectedMessage(UINT msg,
58 WPARAM w_param, 58 WPARAM w_param,
59 LPARAM l_param) OVERRIDE; 59 LPARAM l_param) OVERRIDE;
60 virtual void OnVScroll(int scroll_type, 60 virtual void OnVScroll(int scroll_type,
61 short position, 61 short position,
62 HWND scrollbar) OVERRIDE; 62 HWND scrollbar) OVERRIDE;
63 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) OVERRIDE; 63 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) OVERRIDE;
64 virtual void OnSize(UINT param, const WTL::CSize& size) OVERRIDE; 64 virtual void OnSize(UINT param, const WTL::CSize& size) OVERRIDE;
65 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param) OVERRIDE; 65 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param) OVERRIDE;
66 virtual void OnNCPaint(HRGN rgn) OVERRIDE; 66 virtual void OnNCPaint(HRGN rgn) OVERRIDE;
67 virtual LRESULT OnNCHitTest(const CPoint& point) OVERRIDE;
67 68
68 // Backend for all scroll messages, the |message| parameter indicates which 69 // Backend for all scroll messages, the |message| parameter indicates which
69 // one it is. 70 // one it is.
70 void ScrollCommon(UINT message, int scroll_type, short position, 71 void ScrollCommon(UINT message, int scroll_type, short position,
71 HWND scrollbar); 72 HWND scrollbar);
72 bool ScrollZoom(int scroll_type); 73 bool ScrollZoom(int scroll_type);
73 74
74 internal::NativeTabContentsViewDelegate* delegate_; 75 internal::NativeTabContentsViewDelegate* delegate_;
75 76
76 // A drop target object that handles drags over this TabContents. 77 // A drop target object that handles drags over this TabContents.
77 scoped_refptr<WebDropTarget> drop_target_; 78 scoped_refptr<WebDropTarget> drop_target_;
78 79
79 // Used to handle the drag-and-drop. 80 // Used to handle the drag-and-drop.
80 scoped_refptr<TabContentsDragWin> drag_handler_; 81 scoped_refptr<TabContentsDragWin> drag_handler_;
81 82
82 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewWin); 83 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewWin);
83 }; 84 };
84 85
85 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ 86 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698