| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ASH_DISPLAY_DISPLAY_UTIL_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_UTIL_H_ |
| 6 #define ASH_DISPLAY_DISPLAY_UTIL_H_ | 6 #define ASH_DISPLAY_DISPLAY_UTIL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Moves the cursor to the point inside the |ash_host| that is closest to | 42 // Moves the cursor to the point inside the |ash_host| that is closest to |
| 43 // the point_in_screen, which may be outside of the root window. | 43 // the point_in_screen, which may be outside of the root window. |
| 44 // |update_last_loation_now| is used for the test to update the mouse | 44 // |update_last_loation_now| is used for the test to update the mouse |
| 45 // location synchronously. | 45 // location synchronously. |
| 46 void MoveCursorTo(AshWindowTreeHost* ash_host, | 46 void MoveCursorTo(AshWindowTreeHost* ash_host, |
| 47 const gfx::Point& point_in_screen, | 47 const gfx::Point& point_in_screen, |
| 48 bool update_last_location_now); | 48 bool update_last_location_now); |
| 49 | 49 |
| 50 #if defined(OS_CHROMEOS) | 50 #if defined(OS_CHROMEOS) |
| 51 // Shows the notification message for display related issues. | 51 // Shows the notification message for display related issues, and optionally |
| 52 void ShowDisplayErrorNotification(int message_id); | 52 // adds a button to send a feedback report. |
| 53 void ShowDisplayErrorNotification(const base::string16& message, |
| 54 bool allow_feedback); |
| 53 #endif | 55 #endif |
| 54 | 56 |
| 55 ASH_EXPORT base::string16 GetDisplayErrorNotificationMessageForTest(); | 57 ASH_EXPORT base::string16 GetDisplayErrorNotificationMessageForTest(); |
| 56 | 58 |
| 57 } // namespace ash | 59 } // namespace ash |
| 58 | 60 |
| 59 #endif // ASH_DISPLAY_DISPLAY_UTIL_H_ | 61 #endif // ASH_DISPLAY_DISPLAY_UTIL_H_ |
| OLD | NEW |