| 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 UI_MESSAGE_CENTER_VIEWS_DESKTOP_POPUP_ALIGNMENT_DELEGATE_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_DESKTOP_POPUP_ALIGNMENT_DELEGATE_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_DESKTOP_POPUP_ALIGNMENT_DELEGATE_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_DESKTOP_POPUP_ALIGNMENT_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/display/display_observer.h" | 11 #include "ui/display/display_observer.h" |
| 12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
| 13 #include "ui/message_center/views/popup_alignment_delegate.h" | 13 #include "ui/message_center/views/popup_alignment_delegate.h" |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace display { |
| 16 class Screen; | 16 class Screen; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace display { | |
| 20 using Screen = gfx::Screen; | |
| 21 } | |
| 22 | |
| 23 namespace message_center { | 19 namespace message_center { |
| 24 namespace test { | 20 namespace test { |
| 25 class MessagePopupCollectionTest; | 21 class MessagePopupCollectionTest; |
| 26 } | 22 } |
| 27 | 23 |
| 28 // The PopupAlignmentDelegate for non-ash Windows/Linux desktop. | 24 // The PopupAlignmentDelegate for non-ash Windows/Linux desktop. |
| 29 class MESSAGE_CENTER_EXPORT DesktopPopupAlignmentDelegate | 25 class MESSAGE_CENTER_EXPORT DesktopPopupAlignmentDelegate |
| 30 : public PopupAlignmentDelegate, | 26 : public PopupAlignmentDelegate, |
| 31 public display::DisplayObserver { | 27 public display::DisplayObserver { |
| 32 public: | 28 public: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 63 int64_t display_id_; | 59 int64_t display_id_; |
| 64 display::Screen* screen_; | 60 display::Screen* screen_; |
| 65 gfx::Rect work_area_; | 61 gfx::Rect work_area_; |
| 66 | 62 |
| 67 DISALLOW_COPY_AND_ASSIGN(DesktopPopupAlignmentDelegate); | 63 DISALLOW_COPY_AND_ASSIGN(DesktopPopupAlignmentDelegate); |
| 68 }; | 64 }; |
| 69 | 65 |
| 70 } // namespace message_center | 66 } // namespace message_center |
| 71 | 67 |
| 72 #endif // UI_MESSAGE_CENTER_VIEWS_DESKTOP_POPUP_ALIGNMENT_DELEGATE_H_ | 68 #endif // UI_MESSAGE_CENTER_VIEWS_DESKTOP_POPUP_ALIGNMENT_DELEGATE_H_ |
| OLD | NEW |