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

Side by Side Diff: extensions/renderer/guest_view/guest_view_internal_custom_bindings.h

Issue 2535713004: extensions: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 years 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
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 EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ 5 #ifndef EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
6 #define EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ 6 #define EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "extensions/renderer/object_backed_native_handler.h" 10 #include "extensions/renderer/object_backed_native_handler.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 class Dispatcher;
14 13
15 // Implements custom bindings for the guestViewInternal API. 14 // Implements custom bindings for the guestViewInternal API.
16 class GuestViewInternalCustomBindings : public ObjectBackedNativeHandler { 15 class GuestViewInternalCustomBindings : public ObjectBackedNativeHandler {
17 public: 16 public:
18 explicit GuestViewInternalCustomBindings(ScriptContext* context); 17 explicit GuestViewInternalCustomBindings(ScriptContext* context);
19 ~GuestViewInternalCustomBindings() override; 18 ~GuestViewInternalCustomBindings() override;
20 19
21 private: 20 private:
22 // ResetMapEntry is called as a callback to SetWeak(). It resets the 21 // ResetMapEntry is called as a callback to SetWeak(). It resets the
23 // weak view reference held in |view_map_|. 22 // weak view reference held in |view_map_|.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Note that the guest requesting fullscreen means it has already been 88 // Note that the guest requesting fullscreen means it has already been
90 // triggered by a user gesture and we get to this point if embedder allows 89 // triggered by a user gesture and we get to this point if embedder allows
91 // the fullscreen request to proceed. 90 // the fullscreen request to proceed.
92 void RunWithGesture( 91 void RunWithGesture(
93 const v8::FunctionCallbackInfo<v8::Value>& args); 92 const v8::FunctionCallbackInfo<v8::Value>& args);
94 }; 93 };
95 94
96 } // namespace extensions 95 } // namespace extensions
97 96
98 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_ 97 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698