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

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

Issue 444813002: Remove BrowserPlugin's -internal-attach method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_EXTENSIONS_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
6 #define CHROME_RENDERER_EXTENSIONS_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
7
8 #include "extensions/renderer/object_backed_native_handler.h"
9
10 namespace extensions {
11 class Dispatcher;
12
13 // Implements custom bindings for the guestViewInternal API.
14 class GuestViewInternalCustomBindings : public ObjectBackedNativeHandler {
15 public:
16 explicit GuestViewInternalCustomBindings(ScriptContext* context);
17
18 private:
19 // AttachGuest attaches a GuestView to a provided container element. Once
20 // attached, the GuestView will participate in layout of the container page
21 // and become visible on screen.
22 // AttachGuest takes three parameters: an |element_instance_id|, a
23 // |guest_instance_id| and an |attach_params| dictionary. The first
24 // parameter, |element_instance_id|, uniquely identifies a container within
25 // the content module that is able to host GuestViews. The second parameter,
26 // |guest_instance_id|, uniquely identifies a GuestView. The third parameter
27 // is typically used to convey the current state of the container element
28 // at the time of attachment.
not at google - send to devlin 2014/08/14 19:51:22 Could you phrase these arguments as a list, rather
Fady Samuel 2014/08/14 20:02:56 Done.
29 void AttachGuest(const v8::FunctionCallbackInfo<v8::Value>& args);
30 };
31
32 } // namespace extensions
33
34 #endif // CHROME_RENDERER_EXTENSIONS_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698