| 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_WIDGET_WIDGET_H_ | 5 #ifndef VIEWS_WIDGET_WIDGET_H_ |
| 6 #define VIEWS_WIDGET_WIDGET_H_ | 6 #define VIEWS_WIDGET_WIDGET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <stack> | 9 #include <stack> |
| 10 | 10 |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 compositor_factory_ = factory; | 497 compositor_factory_ = factory; |
| 498 } | 498 } |
| 499 static ui::Compositor* (*compositor_factory())() { | 499 static ui::Compositor* (*compositor_factory())() { |
| 500 return compositor_factory_; | 500 return compositor_factory_; |
| 501 } | 501 } |
| 502 | 502 |
| 503 const ui::Compositor* GetCompositor() const; | 503 const ui::Compositor* GetCompositor() const; |
| 504 ui::Compositor* GetCompositor(); | 504 ui::Compositor* GetCompositor(); |
| 505 | 505 |
| 506 // Invokes method of same name on the NativeWidget. | 506 // Invokes method of same name on the NativeWidget. |
| 507 void MarkLayerDirty(); | 507 void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, |
| 508 void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, View** ancestor); | 508 ui::Layer** layer_parent); |
| 509 | 509 |
| 510 // Notifies assistive technology that an accessibility event has | 510 // Notifies assistive technology that an accessibility event has |
| 511 // occurred on |view|, such as when the view is focused or when its | 511 // occurred on |view|, such as when the view is focused or when its |
| 512 // value changes. Pass true for |send_native_event| except for rare | 512 // value changes. Pass true for |send_native_event| except for rare |
| 513 // cases where the view is a native control that's already sending a | 513 // cases where the view is a native control that's already sending a |
| 514 // native accessibility event and the duplicate event would cause | 514 // native accessibility event and the duplicate event would cause |
| 515 // problems. | 515 // problems. |
| 516 void NotifyAccessibilityEvent( | 516 void NotifyAccessibilityEvent( |
| 517 View* view, | 517 View* view, |
| 518 ui::AccessibilityTypes::Event event_type, | 518 ui::AccessibilityTypes::Event event_type, |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 | 731 |
| 732 // Tracks whether native widget has been initialized. | 732 // Tracks whether native widget has been initialized. |
| 733 bool native_widget_initialized_; | 733 bool native_widget_initialized_; |
| 734 | 734 |
| 735 DISALLOW_COPY_AND_ASSIGN(Widget); | 735 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 736 }; | 736 }; |
| 737 | 737 |
| 738 } // namespace views | 738 } // namespace views |
| 739 | 739 |
| 740 #endif // VIEWS_WIDGET_WIDGET_H_ | 740 #endif // VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |