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

Side by Side Diff: sky/engine/core/script/dart_controller.h

Issue 1153673005: Make Uri.base work in SkyView (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/engine/core/frame/LocalDOMWindow.cpp ('k') | sky/engine/core/script/dart_controller.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SKY_ENGINE_CORE_SCRIPT_DART_CONTROLLER_H_ 5 #ifndef SKY_ENGINE_CORE_SCRIPT_DART_CONTROLLER_H_
6 #define SKY_ENGINE_CORE_SCRIPT_DART_CONTROLLER_H_ 6 #define SKY_ENGINE_CORE_SCRIPT_DART_CONTROLLER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 27 matching lines...) Expand all
38 38
39 void LoadScriptInModule(AbstractModule* module, 39 void LoadScriptInModule(AbstractModule* module,
40 const String& source, 40 const String& source,
41 const TextPosition& textPosition, 41 const TextPosition& textPosition,
42 const LoadFinishedCallback& load_finished_callback); 42 const LoadFinishedCallback& load_finished_callback);
43 void ExecuteLibraryInModule(AbstractModule* module, 43 void ExecuteLibraryInModule(AbstractModule* module,
44 Dart_Handle library, 44 Dart_Handle library,
45 HTMLScriptElement* script); 45 HTMLScriptElement* script);
46 46
47 void ClearForClose(); 47 void ClearForClose();
48 void CreateIsolateFor(PassOwnPtr<DOMDartState> dom_dart_state, 48 void CreateIsolateFor(PassOwnPtr<DOMDartState> dom_dart_state);
49 const KURL& url);
50 void InstallView(View* view); 49 void InstallView(View* view);
51 50
52 DOMDartState* dart_state() const { return dom_dart_state_.get(); } 51 DOMDartState* dart_state() const { return dom_dart_state_.get(); }
53 52
54 private: 53 private:
55 bool ImportChildLibraries(AbstractModule* module, Dart_Handle library); 54 bool ImportChildLibraries(AbstractModule* module, Dart_Handle library);
56 Dart_Handle CreateLibrary(AbstractModule* module, 55 Dart_Handle CreateLibrary(AbstractModule* module,
57 const String& source, 56 const String& source,
58 const TextPosition& position); 57 const TextPosition& position);
59 58
60 void DidLoadMainLibrary(KURL url); 59 void DidLoadMainLibrary(KURL url);
61 60
62 OwnPtr<DOMDartState> dom_dart_state_; 61 OwnPtr<DOMDartState> dom_dart_state_;
63 OwnPtr<BuiltinSky> builtin_sky_; 62 OwnPtr<BuiltinSky> builtin_sky_;
64 63
65 base::WeakPtrFactory<DartController> weak_factory_; 64 base::WeakPtrFactory<DartController> weak_factory_;
66 65
67 DISALLOW_COPY_AND_ASSIGN(DartController); 66 DISALLOW_COPY_AND_ASSIGN(DartController);
68 }; 67 };
69 68
70 } 69 }
71 70
72 #endif // SKY_ENGINE_CORE_SCRIPT_DART_CONTROLLER_H_ 71 #endif // SKY_ENGINE_CORE_SCRIPT_DART_CONTROLLER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.cpp ('k') | sky/engine/core/script/dart_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698