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

Side by Side Diff: mojo/edk/js/handle.h

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 | « mojo/edk/js/drain_data.cc ('k') | mojo/edk/js/handle_unittest.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 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 MOJO_EDK_JS_HANDLE_H_ 5 #ifndef MOJO_EDK_JS_HANDLE_H_
6 #define MOJO_EDK_JS_HANDLE_H_ 6 #define MOJO_EDK_JS_HANDLE_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "gin/converter.h" 9 #include "gin/converter.h"
10 #include "gin/handle.h" 10 #include "gin/handle.h"
11 #include "gin/wrappable.h" 11 #include "gin/wrappable.h"
12 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" 12 #include "mojo/public/cpp/system/core.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 namespace edk { 15 namespace edk {
16 class HandleCloseObserver; 16 class HandleCloseObserver;
17 17
18 // Wrapper for mojo Handles exposed to JavaScript. This ensures the Handle 18 // Wrapper for mojo Handles exposed to JavaScript. This ensures the Handle
19 // is Closed when its JS object is garbage collected. 19 // is Closed when its JS object is garbage collected.
20 class HandleWrapper : public gin::Wrappable<HandleWrapper> { 20 class HandleWrapper : public gin::Wrappable<HandleWrapper> {
21 public: 21 public:
22 static gin::WrapperInfo kWrapperInfo; 22 static gin::WrapperInfo kWrapperInfo;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return false; 90 return false;
91 } 91 }
92 *out = gin::Handle<mojo::edk::HandleWrapper>(val, object); 92 *out = gin::Handle<mojo::edk::HandleWrapper>(val, object);
93 return true; 93 return true;
94 } 94 }
95 }; 95 };
96 96
97 } // namespace gin 97 } // namespace gin
98 98
99 #endif // MOJO_EDK_JS_HANDLE_H_ 99 #endif // MOJO_EDK_JS_HANDLE_H_
OLDNEW
« no previous file with comments | « mojo/edk/js/drain_data.cc ('k') | mojo/edk/js/handle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698