| OLD | NEW |
| 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_VIEWS_DELEGATE_H_ | 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_ |
| 6 #define UI_VIEWS_VIEWS_DELEGATE_H_ | 6 #define UI_VIEWS_VIEWS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // Saves the position, size and "show" state for the window with the | 61 // Saves the position, size and "show" state for the window with the |
| 62 // specified name. | 62 // specified name. |
| 63 virtual void SaveWindowPlacement(const Widget* widget, | 63 virtual void SaveWindowPlacement(const Widget* widget, |
| 64 const std::string& window_name, | 64 const std::string& window_name, |
| 65 const gfx::Rect& bounds, | 65 const gfx::Rect& bounds, |
| 66 ui::WindowShowState show_state) = 0; | 66 ui::WindowShowState show_state) = 0; |
| 67 | 67 |
| 68 // Retrieves the saved position and size and "show" state for the window with | 68 // Retrieves the saved position and size and "show" state for the window with |
| 69 // the specified name. | 69 // the specified name. |
| 70 virtual bool GetSavedWindowPlacement( | 70 virtual bool GetSavedWindowPlacement( |
| 71 const Widget* widget, |
| 71 const std::string& window_name, | 72 const std::string& window_name, |
| 72 gfx::Rect* bounds, | 73 gfx::Rect* bounds, |
| 73 ui::WindowShowState* show_state) const = 0; | 74 ui::WindowShowState* show_state) const = 0; |
| 74 | 75 |
| 75 virtual void NotifyAccessibilityEvent( | 76 virtual void NotifyAccessibilityEvent( |
| 76 View* view, | 77 View* view, |
| 77 ui::AccessibilityTypes::Event event_type) = 0; | 78 ui::AccessibilityTypes::Event event_type) = 0; |
| 78 | 79 |
| 79 // For accessibility, notify the delegate that a menu item was focused | 80 // For accessibility, notify the delegate that a menu item was focused |
| 80 // so that alternate feedback (speech / magnified text) can be provided. | 81 // so that alternate feedback (speech / magnified text) can be provided. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // Returns the default obscured text reveal duration. | 118 // Returns the default obscured text reveal duration. |
| 118 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() = 0; | 119 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() = 0; |
| 119 | 120 |
| 120 private: | 121 private: |
| 121 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; | 122 scoped_ptr<ViewsTouchSelectionControllerFactory> views_tsc_factory_; |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace views | 125 } // namespace views |
| 125 | 126 |
| 126 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ | 127 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ |
| OLD | NEW |