OLD | NEW |
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 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.h" | 5 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.h" |
6 | 6 |
7 #include "base/event_types.h" | 7 #include "base/event_types.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate
.h" | 9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate
.h" |
10 #include "content/browser/renderer_host/render_view_host.h" | 10 #include "content/browser/renderer_host/render_view_host.h" |
11 #include "content/browser/renderer_host/render_widget_host_view_aura.h" | 11 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
12 #include "content/browser/tab_contents/tab_contents.h" | 12 #include "content/browser/tab_contents/tab_contents.h" |
13 #include "content/browser/tab_contents/tab_contents_view.h" | 13 #include "content/browser/tab_contents/tab_contents_view.h" |
14 #include "ui/aura/client/aura_constants.h" | 14 #include "ui/aura/client/aura_constants.h" |
15 #include "ui/aura/client/drag_drop_client.h" | 15 #include "ui/aura/client/drag_drop_client.h" |
16 #include "ui/aura/desktop.h" | 16 #include "ui/aura/desktop.h" |
17 #include "ui/aura/event.h" | 17 #include "ui/aura/event.h" |
18 #include "ui/aura/window.h" | 18 #include "ui/aura/window.h" |
19 #include "ui/base/dragdrop/drag_drop_types.h" | 19 #include "ui/base/dragdrop/drag_drop_types.h" |
20 #include "ui/base/dragdrop/os_exchange_data.h" | 20 #include "ui/base/dragdrop/os_exchange_data.h" |
21 #include "ui/base/dragdrop/os_exchange_data_provider_aura.h" | 21 #include "ui/base/dragdrop/os_exchange_data_provider_aura.h" |
| 22 #include "ui/views/views_delegate.h" |
22 #include "ui/views/widget/widget.h" | 23 #include "ui/views/widget/widget.h" |
23 #include "views/views_delegate.h" | |
24 #include "webkit/glue/webdropdata.h" | 24 #include "webkit/glue/webdropdata.h" |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // Listens to all mouse drag events during a drag and drop and sends them to | 28 // Listens to all mouse drag events during a drag and drop and sends them to |
29 // the renderer. | 29 // the renderer. |
30 class WebDragSourceAura : public MessageLoopForUI::Observer { | 30 class WebDragSourceAura : public MessageLoopForUI::Observer { |
31 public: | 31 public: |
32 explicit WebDragSourceAura(NativeTabContentsViewAura* view) | 32 explicit WebDragSourceAura(NativeTabContentsViewAura* view) |
33 : view_(view) { | 33 : view_(view) { |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 } | 318 } |
319 | 319 |
320 //////////////////////////////////////////////////////////////////////////////// | 320 //////////////////////////////////////////////////////////////////////////////// |
321 // NativeTabContentsView, public: | 321 // NativeTabContentsView, public: |
322 | 322 |
323 // static | 323 // static |
324 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView( | 324 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView( |
325 internal::NativeTabContentsViewDelegate* delegate) { | 325 internal::NativeTabContentsViewDelegate* delegate) { |
326 return new NativeTabContentsViewAura(delegate); | 326 return new NativeTabContentsViewAura(delegate); |
327 } | 327 } |
OLD | NEW |