| 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_TEST_TEST_VIEWS_DELEGATE_H_ | 5 #ifndef UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
| 6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 virtual ~TestViewsDelegate(); | 26 virtual ~TestViewsDelegate(); |
| 27 | 27 |
| 28 void SetUseTransparentWindows(bool transparent); | 28 void SetUseTransparentWindows(bool transparent); |
| 29 | 29 |
| 30 // Overridden from ViewsDelegate: | 30 // Overridden from ViewsDelegate: |
| 31 virtual void SaveWindowPlacement(const Widget* window, | 31 virtual void SaveWindowPlacement(const Widget* window, |
| 32 const std::string& window_name, | 32 const std::string& window_name, |
| 33 const gfx::Rect& bounds, | 33 const gfx::Rect& bounds, |
| 34 ui::WindowShowState show_state) OVERRIDE; | 34 ui::WindowShowState show_state) OVERRIDE; |
| 35 virtual bool GetSavedWindowPlacement( | 35 virtual bool GetSavedWindowPlacement( |
| 36 const Widget* window, |
| 36 const std::string& window_name, | 37 const std::string& window_name, |
| 37 gfx::Rect* bounds, | 38 gfx::Rect* bounds, |
| 38 ui::WindowShowState* show_state) const OVERRIDE; | 39 ui::WindowShowState* show_state) const OVERRIDE; |
| 39 | 40 |
| 40 virtual void NotifyAccessibilityEvent( | 41 virtual void NotifyAccessibilityEvent( |
| 41 View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {} | 42 View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {} |
| 42 | 43 |
| 43 virtual void NotifyMenuItemFocused(const string16& menu_name, | 44 virtual void NotifyMenuItemFocused(const string16& menu_name, |
| 44 const string16& menu_item_name, | 45 const string16& menu_item_name, |
| 45 int item_index, | 46 int item_index, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 65 | 66 |
| 66 private: | 67 private: |
| 67 bool use_transparent_windows_; | 68 bool use_transparent_windows_; |
| 68 | 69 |
| 69 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); | 70 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 } // namespace views | 73 } // namespace views |
| 73 | 74 |
| 74 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 75 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
| OLD | NEW |