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

Side by Side Diff: third_party/WebKit/public/web/WebFrameWidget.h

Issue 2150443002: Supplement should have a Member to the corresponding Supplementable object (Part 1) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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 | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 #include "public/web/WebWidget.h" 36 #include "public/web/WebWidget.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class CompositorAnimationTimeline; 40 class CompositorAnimationTimeline;
41 class CompositorProxyClient; 41 class CompositorProxyClient;
42 class GraphicsLayer; 42 class GraphicsLayer;
43 class WebLocalFrame; 43 class WebLocalFrame;
44 class WebView; 44 class WebView;
45 class WebWidgetClient; 45 class WebWidgetClient;
46 class WorkerClients;
46 47
47 class WebFrameWidget : public WebWidget { 48 class WebFrameWidget : public WebWidget {
48 public: 49 public:
49 BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebLocalFrame*) ; 50 BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebLocalFrame*) ;
50 // Creates a frame widget for a WebView. Temporary helper to help transition 51 // Creates a frame widget for a WebView. Temporary helper to help transition
51 // away from WebView inheriting WebWidget. 52 // away from WebView inheriting WebWidget.
52 // TODO(dcheng): Remove once transition is complete. 53 // TODO(dcheng): Remove once transition is complete.
53 BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebView*, WebLo calFrame* mainFrame); 54 BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebView*, WebLo calFrame* mainFrame);
54 55
55 // Sets the visibility of the WebFrameWidget. 56 // Sets the visibility of the WebFrameWidget.
(...skipping 18 matching lines...) Expand all
74 virtual void setBaseBackgroundColor(WebColor) = 0; 75 virtual void setBaseBackgroundColor(WebColor) = 0;
75 76
76 77
77 // Blink internal methods -------------------------------------------------- 78 // Blink internal methods --------------------------------------------------
78 // TODO(dcheng): Temporary: there should only be one WebFrameWidget 79 // TODO(dcheng): Temporary: there should only be one WebFrameWidget
79 // implementation but the Blink API is currently in a transition state. 80 // implementation but the Blink API is currently in a transition state.
80 // See https://goo.gl/7yVrnb. These methods should only be used inside 81 // See https://goo.gl/7yVrnb. These methods should only be used inside
81 // blink. 82 // blink.
82 virtual bool forSubframe() const { return true; } 83 virtual bool forSubframe() const { return true; }
83 virtual void scheduleAnimation() = 0; 84 virtual void scheduleAnimation() = 0;
84 virtual CompositorProxyClient* createCompositorProxyClient() = 0; 85 virtual CompositorProxyClient* createCompositorProxyClient(WorkerClients&) = 0;
tkent 2016/07/14 01:33:04 +dcheng. Exposing a core class WorkerClients look
85 virtual WebWidgetClient* client() const = 0; 86 virtual WebWidgetClient* client() const = 0;
86 87
87 // Sets the root graphics layer. |GraphicsLayer| can be null when detaching 88 // Sets the root graphics layer. |GraphicsLayer| can be null when detaching
88 // the root layer. 89 // the root layer.
89 virtual void setRootGraphicsLayer(GraphicsLayer*) = 0; 90 virtual void setRootGraphicsLayer(GraphicsLayer*) = 0;
90 91
91 // Attaches/detaches a CompositorAnimationTimeline to the layer tree. 92 // Attaches/detaches a CompositorAnimationTimeline to the layer tree.
92 virtual void attachCompositorAnimationTimeline(CompositorAnimationTimeline*) = 0; 93 virtual void attachCompositorAnimationTimeline(CompositorAnimationTimeline*) = 0;
93 virtual void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) = 0; 94 virtual void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) = 0;
94 }; 95 };
95 96
96 } // namespace blink 97 } // namespace blink
97 98
98 #endif 99 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698