| 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_BASE_CLIPBOARD_CLIPBOARD_WIN_H_ | 5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_WIN_H_ |
| 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_WIN_H_ | 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_WIN_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "ui/base/clipboard/clipboard.h" | 14 #include "ui/base/clipboard/clipboard.h" |
| 15 | 15 |
| 16 namespace base { |
| 17 namespace win { |
| 18 class MessageWindow; |
| 19 } |
| 20 } |
| 21 |
| 22 namespace gfx { |
| 23 class Size; |
| 24 } |
| 25 |
| 16 namespace ui { | 26 namespace ui { |
| 17 | 27 |
| 18 class ClipboardWin : public Clipboard { | 28 class ClipboardWin : public Clipboard { |
| 19 private: | 29 private: |
| 20 friend class Clipboard; | 30 friend class Clipboard; |
| 21 | 31 |
| 22 ClipboardWin(); | 32 ClipboardWin(); |
| 23 ~ClipboardWin() override; | 33 ~ClipboardWin() override; |
| 24 | 34 |
| 25 // Clipboard overrides: | 35 // Clipboard overrides: |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 82 |
| 73 // Mark this as mutable so const methods can still do lazy initialization. | 83 // Mark this as mutable so const methods can still do lazy initialization. |
| 74 mutable std::unique_ptr<base::win::MessageWindow> clipboard_owner_; | 84 mutable std::unique_ptr<base::win::MessageWindow> clipboard_owner_; |
| 75 | 85 |
| 76 DISALLOW_COPY_AND_ASSIGN(ClipboardWin); | 86 DISALLOW_COPY_AND_ASSIGN(ClipboardWin); |
| 77 }; | 87 }; |
| 78 | 88 |
| 79 } // namespace ui | 89 } // namespace ui |
| 80 | 90 |
| 81 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_WIN_H_ | 91 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_WIN_H_ |
| OLD | NEW |