| 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 #ifndef VIEWS_VIEW_H_ | 5 #ifndef VIEWS_VIEW_H_ |
| 6 #define VIEWS_VIEW_H_ | 6 #define VIEWS_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 // because their drawing logic stays the same and they can become agnostic to | 546 // because their drawing logic stays the same and they can become agnostic to |
| 547 // the UI directionality. | 547 // the UI directionality. |
| 548 void EnableCanvasFlippingForRTLUI(bool enable) { | 548 void EnableCanvasFlippingForRTLUI(bool enable) { |
| 549 flip_canvas_on_paint_for_rtl_ui_ = enable; | 549 flip_canvas_on_paint_for_rtl_ui_ = enable; |
| 550 } | 550 } |
| 551 | 551 |
| 552 // Accelerated painting ------------------------------------------------------ | 552 // Accelerated painting ------------------------------------------------------ |
| 553 | 553 |
| 554 // Enable/Disable accelerated compositing. | 554 // Enable/Disable accelerated compositing. |
| 555 static void set_use_acceleration_when_possible(bool use); | 555 static void set_use_acceleration_when_possible(bool use); |
| 556 static bool get_use_acceleration_when_possible(); |
| 556 | 557 |
| 557 // Input --------------------------------------------------------------------- | 558 // Input --------------------------------------------------------------------- |
| 558 // The points (and mouse locations) in the following functions are in the | 559 // The points (and mouse locations) in the following functions are in the |
| 559 // view's coordinates, except for a RootView. | 560 // view's coordinates, except for a RootView. |
| 560 | 561 |
| 561 // Returns the deepest visible descendant that contains the specified point. | 562 // Returns the deepest visible descendant that contains the specified point. |
| 562 virtual View* GetEventHandlerForPoint(const gfx::Point& point); | 563 virtual View* GetEventHandlerForPoint(const gfx::Point& point); |
| 563 | 564 |
| 564 // Return the cursor that should be used for this view or the default cursor. | 565 // Return the cursor that should be used for this view or the default cursor. |
| 565 // The event location is in the receiver's coordinate system. The caller is | 566 // The event location is in the receiver's coordinate system. The caller is |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1458 // The Windows-specific accessibility implementation for this View. | 1459 // The Windows-specific accessibility implementation for this View. |
| 1459 scoped_refptr<NativeViewAccessibilityWin> native_view_accessibility_win_; | 1460 scoped_refptr<NativeViewAccessibilityWin> native_view_accessibility_win_; |
| 1460 #endif | 1461 #endif |
| 1461 | 1462 |
| 1462 DISALLOW_COPY_AND_ASSIGN(View); | 1463 DISALLOW_COPY_AND_ASSIGN(View); |
| 1463 }; | 1464 }; |
| 1464 | 1465 |
| 1465 } // namespace views | 1466 } // namespace views |
| 1466 | 1467 |
| 1467 #endif // VIEWS_VIEW_H_ | 1468 #endif // VIEWS_VIEW_H_ |
| OLD | NEW |