| 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_WIN_H_ | 5 #ifndef VIEWS_WIDGET_WIDGET_WIN_H_ |
| 6 #define VIEWS_WIDGET_WIDGET_WIN_H_ | 6 #define VIEWS_WIDGET_WIDGET_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <atlbase.h> | 9 #include <atlbase.h> |
| 10 #include <atlapp.h> | 10 #include <atlapp.h> |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 virtual Window* GetWindow(); | 240 virtual Window* GetWindow(); |
| 241 virtual const Window* GetWindow() const; | 241 virtual const Window* GetWindow() const; |
| 242 virtual void SetNativeWindowProperty(const char* name, void* value); | 242 virtual void SetNativeWindowProperty(const char* name, void* value); |
| 243 virtual void* GetNativeWindowProperty(const char* name); | 243 virtual void* GetNativeWindowProperty(const char* name); |
| 244 virtual ThemeProvider* GetThemeProvider() const; | 244 virtual ThemeProvider* GetThemeProvider() const; |
| 245 virtual ThemeProvider* GetDefaultThemeProvider() const; | 245 virtual ThemeProvider* GetDefaultThemeProvider() const; |
| 246 virtual FocusManager* GetFocusManager(); | 246 virtual FocusManager* GetFocusManager(); |
| 247 virtual void ViewHierarchyChanged(bool is_add, View *parent, | 247 virtual void ViewHierarchyChanged(bool is_add, View *parent, |
| 248 View *child); | 248 View *child); |
| 249 virtual bool ContainsNativeView(gfx::NativeView native_view); | 249 virtual bool ContainsNativeView(gfx::NativeView native_view); |
| 250 virtual void StartDragForViewFromMouseEvent(View* view, |
| 251 const OSExchangeData& data, |
| 252 int operation); |
| 253 virtual View* GetDraggedView(); |
| 250 | 254 |
| 251 // Overridden from MessageLoop::Observer: | 255 // Overridden from MessageLoop::Observer: |
| 252 void WillProcessMessage(const MSG& msg); | 256 void WillProcessMessage(const MSG& msg); |
| 253 virtual void DidProcessMessage(const MSG& msg); | 257 virtual void DidProcessMessage(const MSG& msg); |
| 254 | 258 |
| 255 // Overridden from FocusTraversable: | 259 // Overridden from FocusTraversable: |
| 256 virtual FocusSearch* GetFocusSearch(); | 260 virtual FocusSearch* GetFocusSearch(); |
| 257 virtual FocusTraversable* GetFocusTraversableParent(); | 261 virtual FocusTraversable* GetFocusTraversableParent(); |
| 258 virtual View* GetFocusTraversableParentView(); | 262 virtual View* GetFocusTraversableParentView(); |
| 259 | 263 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 static const int kMaxAccessibilityViewEvents = 20; | 599 static const int kMaxAccessibilityViewEvents = 20; |
| 596 | 600 |
| 597 // A vector used to access views for which we have sent notifications to | 601 // A vector used to access views for which we have sent notifications to |
| 598 // accessibility clients. It is used as a circular queue. | 602 // accessibility clients. It is used as a circular queue. |
| 599 std::vector<View*> accessibility_view_events_; | 603 std::vector<View*> accessibility_view_events_; |
| 600 | 604 |
| 601 // The current position of the view events vector. When incrementing, | 605 // The current position of the view events vector. When incrementing, |
| 602 // we always mod this value with the max view events above . | 606 // we always mod this value with the max view events above . |
| 603 int accessibility_view_events_index_; | 607 int accessibility_view_events_index_; |
| 604 | 608 |
| 609 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the |
| 610 // view the drag started from. |
| 611 View* dragged_view_; |
| 612 |
| 605 ViewProps props_; | 613 ViewProps props_; |
| 606 | 614 |
| 607 DISALLOW_COPY_AND_ASSIGN(WidgetWin); | 615 DISALLOW_COPY_AND_ASSIGN(WidgetWin); |
| 608 }; | 616 }; |
| 609 | 617 |
| 610 } // namespace views | 618 } // namespace views |
| 611 | 619 |
| 612 #endif // VIEWS_WIDGET_WIDGET_WIN_H_ | 620 #endif // VIEWS_WIDGET_WIDGET_WIN_H_ |
| OLD | NEW |