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

Side by Side Diff: chrome/browser/tab_contents/web_drag_source_win.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/common/notification_observer.h" 10 #include "content/common/notification_observer.h"
(...skipping 10 matching lines...) Expand all
21 // on their system. This object tells Windows whether or not the drag should 21 // on their system. This object tells Windows whether or not the drag should
22 // continue, and supplies the appropriate cursors. 22 // continue, and supplies the appropriate cursors.
23 class WebDragSource : public ui::DragSource, 23 class WebDragSource : public ui::DragSource,
24 public NotificationObserver { 24 public NotificationObserver {
25 public: 25 public:
26 // Create a new DragSource for a given HWND and TabContents. 26 // Create a new DragSource for a given HWND and TabContents.
27 WebDragSource(gfx::NativeWindow source_wnd, TabContents* tab_contents); 27 WebDragSource(gfx::NativeWindow source_wnd, TabContents* tab_contents);
28 virtual ~WebDragSource(); 28 virtual ~WebDragSource();
29 29
30 // NotificationObserver implementation. 30 // NotificationObserver implementation.
31 virtual void Observe(NotificationType type, 31 virtual void Observe(int type,
32 const NotificationSource& source, 32 const NotificationSource& source,
33 const NotificationDetails& details); 33 const NotificationDetails& details);
34 34
35 void set_effect(DWORD effect) { effect_ = effect; } 35 void set_effect(DWORD effect) { effect_ = effect; }
36 36
37 protected: 37 protected:
38 // ui::DragSource 38 // ui::DragSource
39 virtual void OnDragSourceCancel(); 39 virtual void OnDragSourceCancel();
40 virtual void OnDragSourceDrop(); 40 virtual void OnDragSourceDrop();
41 virtual void OnDragSourceMove(); 41 virtual void OnDragSourceMove();
(...skipping 15 matching lines...) Expand all
57 RenderViewHost* render_view_host_; 57 RenderViewHost* render_view_host_;
58 58
59 NotificationRegistrar registrar_; 59 NotificationRegistrar registrar_;
60 60
61 DWORD effect_; 61 DWORD effect_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(WebDragSource); 63 DISALLOW_COPY_AND_ASSIGN(WebDragSource);
64 }; 64 };
65 65
66 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_ 66 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_SOURCE_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_contents_unittest.cc ('k') | chrome/browser/tab_contents/web_drag_source_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698