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 #include "ui/views/window/window_button_order_provider.h" | 5 #include "ui/views/window/window_button_order_provider.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "ui/views/linux_ui/linux_ui.h" | 8 #include "ui/views/linux_ui/linux_ui.h" |
8 #include "ui/views/linux_ui/window_button_order_observer.h" | 9 #include "ui/views/linux_ui/window_button_order_observer.h" |
9 | 10 |
10 namespace views { | 11 namespace views { |
11 | 12 |
12 namespace { | 13 namespace { |
13 | 14 |
14 class WindowButtonOrderObserverDelegate : public WindowButtonOrderProvider, | 15 class WindowButtonOrderObserverDelegate : public WindowButtonOrderProvider, |
15 public WindowButtonOrderObserver { | 16 public WindowButtonOrderObserver { |
16 public: | 17 public: |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 } | 76 } |
76 | 77 |
77 void WindowButtonOrderProvider::SetWindowButtonOrder( | 78 void WindowButtonOrderProvider::SetWindowButtonOrder( |
78 const std::vector<views::FrameButton>& leading_buttons, | 79 const std::vector<views::FrameButton>& leading_buttons, |
79 const std::vector<views::FrameButton>& trailing_buttons) { | 80 const std::vector<views::FrameButton>& trailing_buttons) { |
80 leading_buttons_ = leading_buttons; | 81 leading_buttons_ = leading_buttons; |
81 trailing_buttons_ = trailing_buttons; | 82 trailing_buttons_ = trailing_buttons; |
82 } | 83 } |
83 | 84 |
84 } // namespace views | 85 } // namespace views |
OLD | NEW |