OLD | NEW |
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 #include "content/browser/web_contents/web_contents_view_aura.h" | 5 #include "content/browser/web_contents/web_contents_view_aura.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "content/public/browser/render_view_host.h" | 34 #include "content/public/browser/render_view_host.h" |
35 #include "content/public/browser/render_widget_host.h" | 35 #include "content/public/browser/render_widget_host.h" |
36 #include "content/public/browser/render_widget_host_view.h" | 36 #include "content/public/browser/render_widget_host_view.h" |
37 #include "content/public/browser/web_contents_delegate.h" | 37 #include "content/public/browser/web_contents_delegate.h" |
38 #include "content/public/browser/web_contents_observer.h" | 38 #include "content/public/browser/web_contents_observer.h" |
39 #include "content/public/browser/web_contents_view_delegate.h" | 39 #include "content/public/browser/web_contents_view_delegate.h" |
40 #include "content/public/browser/web_drag_dest_delegate.h" | 40 #include "content/public/browser/web_drag_dest_delegate.h" |
41 #include "content/public/common/content_client.h" | 41 #include "content/public/common/content_client.h" |
42 #include "content/public/common/content_switches.h" | 42 #include "content/public/common/content_switches.h" |
43 #include "content/public/common/drop_data.h" | 43 #include "content/public/common/drop_data.h" |
44 #include "net/base/net_util.h" | 44 #include "net/base/filename_util.h" |
45 #include "third_party/WebKit/public/web/WebInputEvent.h" | 45 #include "third_party/WebKit/public/web/WebInputEvent.h" |
46 #include "ui/aura/client/aura_constants.h" | 46 #include "ui/aura/client/aura_constants.h" |
47 #include "ui/aura/client/window_tree_client.h" | 47 #include "ui/aura/client/window_tree_client.h" |
48 #include "ui/aura/env.h" | 48 #include "ui/aura/env.h" |
49 #include "ui/aura/window.h" | 49 #include "ui/aura/window.h" |
50 #include "ui/aura/window_observer.h" | 50 #include "ui/aura/window_observer.h" |
51 #include "ui/aura/window_tree_host.h" | 51 #include "ui/aura/window_tree_host.h" |
52 #include "ui/aura/window_tree_host_observer.h" | 52 #include "ui/aura/window_tree_host_observer.h" |
53 #include "ui/base/clipboard/clipboard.h" | 53 #include "ui/base/clipboard/clipboard.h" |
54 #include "ui/base/clipboard/custom_data_helper.h" | 54 #include "ui/base/clipboard/custom_data_helper.h" |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1477 event.location(), | 1477 event.location(), |
1478 gfx::Screen::GetScreenFor(GetNativeView())->GetCursorScreenPoint(), | 1478 gfx::Screen::GetScreenFor(GetNativeView())->GetCursorScreenPoint(), |
1479 ConvertAuraEventFlagsToWebInputEventModifiers(event.flags())); | 1479 ConvertAuraEventFlagsToWebInputEventModifiers(event.flags())); |
1480 if (drag_dest_delegate_) | 1480 if (drag_dest_delegate_) |
1481 drag_dest_delegate_->OnDrop(); | 1481 drag_dest_delegate_->OnDrop(); |
1482 current_drop_data_.reset(); | 1482 current_drop_data_.reset(); |
1483 return ConvertFromWeb(current_drag_op_); | 1483 return ConvertFromWeb(current_drag_op_); |
1484 } | 1484 } |
1485 | 1485 |
1486 } // namespace content | 1486 } // namespace content |
OLD | NEW |