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

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

Issue 9581003: Get rid of chrome dependencies from tab_contents_drag_win.cc. After this I'll move it to content\br… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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_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 11 matching lines...) Expand all
22 public NativeTabContentsView { 22 public NativeTabContentsView {
23 public: 23 public:
24 explicit NativeTabContentsViewWin( 24 explicit NativeTabContentsViewWin(
25 internal::NativeTabContentsViewDelegate* delegate); 25 internal::NativeTabContentsViewDelegate* delegate);
26 virtual ~NativeTabContentsViewWin(); 26 virtual ~NativeTabContentsViewWin();
27 27
28 WebDragDest* drag_dest() const { return drag_dest_.get(); } 28 WebDragDest* drag_dest() const { return drag_dest_.get(); }
29 29
30 content::WebContents* GetWebContents() const; 30 content::WebContents* GetWebContents() const;
31 31
32 void EndDragging();
33
34 private: 32 private:
35 // Overridden from NativeTabContentsView: 33 // Overridden from NativeTabContentsView:
36 virtual void InitNativeTabContentsView() OVERRIDE; 34 virtual void InitNativeTabContentsView() OVERRIDE;
37 virtual void Unparent() OVERRIDE; 35 virtual void Unparent() OVERRIDE;
38 virtual content::RenderWidgetHostView* CreateRenderWidgetHostView( 36 virtual content::RenderWidgetHostView* CreateRenderWidgetHostView(
39 RenderWidgetHost* render_widget_host) OVERRIDE; 37 RenderWidgetHost* render_widget_host) OVERRIDE;
40 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; 38 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
41 virtual void SetPageTitle(const string16& title) OVERRIDE; 39 virtual void SetPageTitle(const string16& title) OVERRIDE;
42 virtual void StartDragging(const WebDropData& drop_data, 40 virtual void StartDragging(const WebDropData& drop_data,
43 WebKit::WebDragOperationsMask ops, 41 WebKit::WebDragOperationsMask ops,
(...skipping 23 matching lines...) Expand all
67 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param) OVERRIDE; 65 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param) OVERRIDE;
68 virtual void OnNCPaint(HRGN rgn) OVERRIDE; 66 virtual void OnNCPaint(HRGN rgn) OVERRIDE;
69 virtual LRESULT OnNCHitTest(const CPoint& point) OVERRIDE; 67 virtual LRESULT OnNCHitTest(const CPoint& point) OVERRIDE;
70 68
71 // Backend for all scroll messages, the |message| parameter indicates which 69 // Backend for all scroll messages, the |message| parameter indicates which
72 // one it is. 70 // one it is.
73 void ScrollCommon(UINT message, int scroll_type, short position, 71 void ScrollCommon(UINT message, int scroll_type, short position,
74 HWND scrollbar); 72 HWND scrollbar);
75 bool ScrollZoom(int scroll_type); 73 bool ScrollZoom(int scroll_type);
76 74
75 void EndDragging();
76
77 internal::NativeTabContentsViewDelegate* delegate_; 77 internal::NativeTabContentsViewDelegate* delegate_;
78 78
79 scoped_ptr<WebDragBookmarkHandlerWin> bookmark_handler_; 79 scoped_ptr<WebDragBookmarkHandlerWin> bookmark_handler_;
80 // A drop target object that handles drags over this TabContents. 80 // A drop target object that handles drags over this TabContents.
81 scoped_refptr<WebDragDest> drag_dest_; 81 scoped_refptr<WebDragDest> drag_dest_;
82 82
83 // Used to handle the drag-and-drop. 83 // Used to handle the drag-and-drop.
84 scoped_refptr<TabContentsDragWin> drag_handler_; 84 scoped_refptr<TabContentsDragWin> drag_handler_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewWin); 86 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewWin);
87 }; 87 };
88 88
89 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ 89 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698