Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: ui/views/mus/clipboard_mus.h

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/mus/aura_init.cc ('k') | ui/views/mus/clipboard_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MUS_CLIPBOARD_MUS_H_ 5 #ifndef UI_VIEWS_MUS_CLIPBOARD_MUS_H_
6 #define UI_VIEWS_MUS_CLIPBOARD_MUS_H_ 6 #define UI_VIEWS_MUS_CLIPBOARD_MUS_H_
7 7
8 #include "services/ui/public/interfaces/clipboard.mojom.h" 8 #include "services/ui/public/interfaces/clipboard.mojom.h"
9 #include "ui/base/clipboard/clipboard.h" 9 #include "ui/base/clipboard/clipboard.h"
10 #include "ui/views/mus/mus_export.h" 10 #include "ui/views/mus/mus_export.h"
11 11
12 namespace shell { 12 namespace service_manager {
13 class Connector; 13 class Connector;
14 } 14 }
15 15
16 namespace views { 16 namespace views {
17 17
18 // An adaptor class which translates the ui::Clipboard interface to the 18 // An adaptor class which translates the ui::Clipboard interface to the
19 // clipboard provided by mus. 19 // clipboard provided by mus.
20 class VIEWS_MUS_EXPORT ClipboardMus : public ui::Clipboard { 20 class VIEWS_MUS_EXPORT ClipboardMus : public ui::Clipboard {
21 public: 21 public:
22 ClipboardMus(); 22 ClipboardMus();
23 ~ClipboardMus() override; 23 ~ClipboardMus() override;
24 24
25 void Init(shell::Connector* connector); 25 void Init(service_manager::Connector* connector);
26 26
27 private: 27 private:
28 bool HasMimeType(const mojo::Array<mojo::String>& available_types, 28 bool HasMimeType(const mojo::Array<mojo::String>& available_types,
29 const std::string& type) const; 29 const std::string& type) const;
30 30
31 // Clipboard overrides: 31 // Clipboard overrides:
32 uint64_t GetSequenceNumber(ui::ClipboardType type) const override; 32 uint64_t GetSequenceNumber(ui::ClipboardType type) const override;
33 bool IsFormatAvailable(const FormatType& format, 33 bool IsFormatAvailable(const FormatType& format,
34 ui::ClipboardType type) const override; 34 ui::ClipboardType type) const override;
35 void Clear(ui::ClipboardType type) override; 35 void Clear(ui::ClipboardType type) override;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // collected all the data types, we then pass this to the mus server. 78 // collected all the data types, we then pass this to the mus server.
79 std::unique_ptr<mojo::Map<mojo::String, mojo::Array<uint8_t>>> 79 std::unique_ptr<mojo::Map<mojo::String, mojo::Array<uint8_t>>>
80 current_clipboard_; 80 current_clipboard_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(ClipboardMus); 82 DISALLOW_COPY_AND_ASSIGN(ClipboardMus);
83 }; 83 };
84 84
85 } // namespace views 85 } // namespace views
86 86
87 #endif // UI_VIEWS_MUS_CLIPBOARD_MUS_H_ 87 #endif // UI_VIEWS_MUS_CLIPBOARD_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/mus/aura_init.cc ('k') | ui/views/mus/clipboard_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698