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

Side by Side Diff: ui/views/view.h

Issue 11368072: aura: Add flag to indicate if a drag session is started with touch or mouse. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 1 month 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 | « ui/views/drag_utils.cc ('k') | ui/views/view.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 #ifndef UI_VIEWS_VIEW_H_ 5 #ifndef UI_VIEWS_VIEW_H_
6 #define UI_VIEWS_VIEW_H_ 6 #define UI_VIEWS_VIEW_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/i18n/rtl.h" 15 #include "base/i18n/rtl.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "ui/base/accelerators/accelerator.h" 19 #include "ui/base/accelerators/accelerator.h"
20 #include "ui/base/dragdrop/drag_drop_types.h"
20 #include "ui/base/dragdrop/os_exchange_data.h" 21 #include "ui/base/dragdrop/os_exchange_data.h"
21 #include "ui/base/events/event.h" 22 #include "ui/base/events/event.h"
22 #include "ui/base/events/event_target.h" 23 #include "ui/base/events/event_target.h"
23 #include "ui/compositor/layer_delegate.h" 24 #include "ui/compositor/layer_delegate.h"
24 #include "ui/compositor/layer_owner.h" 25 #include "ui/compositor/layer_owner.h"
25 #include "ui/gfx/native_widget_types.h" 26 #include "ui/gfx/native_widget_types.h"
26 #include "ui/gfx/rect.h" 27 #include "ui/gfx/rect.h"
27 #include "ui/gfx/vector2d.h" 28 #include "ui/gfx/vector2d.h"
28 #include "ui/views/background.h" 29 #include "ui/views/background.h"
29 #include "ui/views/border.h" 30 #include "ui/views/border.h"
(...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 // is invoked. 1328 // is invoked.
1328 void UpdateTooltip(); 1329 void UpdateTooltip();
1329 1330
1330 // Drag and drop ------------------------------------------------------------- 1331 // Drag and drop -------------------------------------------------------------
1331 1332
1332 // Starts a drag and drop operation originating from this view. This invokes 1333 // Starts a drag and drop operation originating from this view. This invokes
1333 // WriteDragData to write the data and GetDragOperations to determine the 1334 // WriteDragData to write the data and GetDragOperations to determine the
1334 // supported drag operations. When done, OnDragDone is invoked. |press_pt| is 1335 // supported drag operations. When done, OnDragDone is invoked. |press_pt| is
1335 // in the view's coordinate system. 1336 // in the view's coordinate system.
1336 // Returns true if a drag was started. 1337 // Returns true if a drag was started.
1337 bool DoDrag(const ui::LocatedEvent& event, const gfx::Point& press_pt); 1338 bool DoDrag(const ui::LocatedEvent& event,
1339 const gfx::Point& press_pt,
1340 ui::DragDropTypes::DragEventSource source);
1338 1341
1339 ////////////////////////////////////////////////////////////////////////////// 1342 //////////////////////////////////////////////////////////////////////////////
1340 1343
1341 // Creation and lifetime ----------------------------------------------------- 1344 // Creation and lifetime -----------------------------------------------------
1342 1345
1343 // False if this View is owned by its parent - i.e. it will be deleted by its 1346 // False if this View is owned by its parent - i.e. it will be deleted by its
1344 // parent during its parents destruction. False is the default. 1347 // parent during its parents destruction. False is the default.
1345 bool owned_by_client_; 1348 bool owned_by_client_;
1346 1349
1347 // Attributes ---------------------------------------------------------------- 1350 // Attributes ----------------------------------------------------------------
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 base::win::ScopedComPtr<NativeViewAccessibilityWin> 1481 base::win::ScopedComPtr<NativeViewAccessibilityWin>
1479 native_view_accessibility_win_; 1482 native_view_accessibility_win_;
1480 #endif 1483 #endif
1481 1484
1482 DISALLOW_COPY_AND_ASSIGN(View); 1485 DISALLOW_COPY_AND_ASSIGN(View);
1483 }; 1486 };
1484 1487
1485 } // namespace views 1488 } // namespace views
1486 1489
1487 #endif // UI_VIEWS_VIEW_H_ 1490 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/drag_utils.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698