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

Side by Side Diff: chrome/browser/ui/aura/tab_contents/web_drag_bookmark_handler_aura.cc

Issue 14189002: linux_aura: Implement dropping in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 7 years, 8 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
« no previous file with comments | « no previous file | ui/base/clipboard/clipboard_aurax11.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/ui/aura/tab_contents/web_drag_bookmark_handler_aura.h" 5 #include "chrome/browser/ui/aura/tab_contents/web_drag_bookmark_handler_aura.h"
6 6
7 #include "chrome/browser/bookmarks/bookmark_node_data.h" 7 #include "chrome/browser/bookmarks/bookmark_node_data.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_finder.h" 9 #include "chrome/browser/ui/browser_finder.h"
10 #include "chrome/browser/ui/browser_window.h" 10 #include "chrome/browser/ui/browser_window.h"
11 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 11 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "ui/base/dragdrop/os_exchange_data.h" 13 #include "ui/base/dragdrop/os_exchange_data.h"
14 #include "ui/base/dragdrop/os_exchange_data_provider_aura.h"
15 #include "webkit/glue/webdropdata.h" 14 #include "webkit/glue/webdropdata.h"
16 15
17 using content::WebContents; 16 using content::WebContents;
18 17
19 WebDragBookmarkHandlerAura::WebDragBookmarkHandlerAura() 18 WebDragBookmarkHandlerAura::WebDragBookmarkHandlerAura()
20 : bookmark_tab_helper_(NULL), 19 : bookmark_tab_helper_(NULL),
21 web_contents_(NULL) { 20 web_contents_(NULL) {
22 } 21 }
23 22
24 WebDragBookmarkHandlerAura::~WebDragBookmarkHandlerAura() { 23 WebDragBookmarkHandlerAura::~WebDragBookmarkHandlerAura() {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 78
80 void WebDragBookmarkHandlerAura::OnDragLeave() { 79 void WebDragBookmarkHandlerAura::OnDragLeave() {
81 if (bookmark_tab_helper_ && bookmark_tab_helper_->bookmark_drag_delegate()) { 80 if (bookmark_tab_helper_ && bookmark_tab_helper_->bookmark_drag_delegate()) {
82 if (bookmark_drag_data_.is_valid()) 81 if (bookmark_drag_data_.is_valid())
83 bookmark_tab_helper_->bookmark_drag_delegate()->OnDragLeave( 82 bookmark_tab_helper_->bookmark_drag_delegate()->OnDragLeave(
84 bookmark_drag_data_); 83 bookmark_drag_data_);
85 } 84 }
86 85
87 bookmark_drag_data_.Clear(); 86 bookmark_drag_data_.Clear();
88 } 87 }
OLDNEW
« no previous file with comments | « no previous file | ui/base/clipboard/clipboard_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698