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

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

Issue 9968058: Cleanup: remove GTK stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | « ui/views/ime/input_method.h ('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 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 // Input --------------------------------------------------------------------- 509 // Input ---------------------------------------------------------------------
510 // The points (and mouse locations) in the following functions are in the 510 // The points (and mouse locations) in the following functions are in the
511 // view's coordinates, except for a RootView. 511 // view's coordinates, except for a RootView.
512 512
513 // Returns the deepest visible descendant that contains the specified point. 513 // Returns the deepest visible descendant that contains the specified point.
514 virtual View* GetEventHandlerForPoint(const gfx::Point& point); 514 virtual View* GetEventHandlerForPoint(const gfx::Point& point);
515 515
516 // Return the cursor that should be used for this view or the default cursor. 516 // Return the cursor that should be used for this view or the default cursor.
517 // The event location is in the receiver's coordinate system. The caller is 517 // The event location is in the receiver's coordinate system. The caller is
518 // responsible for managing the lifetime of the returned object, though that 518 // responsible for managing the lifetime of the returned object, though that
519 // lifetime may vary from platform to platform. On Windows, the cursor is a 519 // lifetime may vary from platform to platform. On Windows and Aura,
520 // shared resource, but Gtk destroys the returned cursor after setting it. 520 // the cursor is a shared resource.
521 virtual gfx::NativeCursor GetCursor(const MouseEvent& event); 521 virtual gfx::NativeCursor GetCursor(const MouseEvent& event);
522 522
523 // Convenience to test whether a point is within this view's bounds 523 // Convenience to test whether a point is within this view's bounds
524 virtual bool HitTest(const gfx::Point& l) const; 524 virtual bool HitTest(const gfx::Point& l) const;
525 525
526 // This method is invoked when the user clicks on this view. 526 // This method is invoked when the user clicks on this view.
527 // The provided event is in the receiver's coordinate system. 527 // The provided event is in the receiver's coordinate system.
528 // 528 //
529 // Return true if you processed the event and want to receive subsequent 529 // Return true if you processed the event and want to receive subsequent
530 // MouseDraggged and MouseReleased events. This also stops the event from 530 // MouseDraggged and MouseReleased events. This also stops the event from
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 base::win::ScopedComPtr<NativeViewAccessibilityWin> 1466 base::win::ScopedComPtr<NativeViewAccessibilityWin>
1467 native_view_accessibility_win_; 1467 native_view_accessibility_win_;
1468 #endif 1468 #endif
1469 1469
1470 DISALLOW_COPY_AND_ASSIGN(View); 1470 DISALLOW_COPY_AND_ASSIGN(View);
1471 }; 1471 };
1472 1472
1473 } // namespace views 1473 } // namespace views
1474 1474
1475 #endif // UI_VIEWS_VIEW_H_ 1475 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/ime/input_method.h ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698