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

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

Issue 1956893003: compositor-worker: Add CompositorProxyClient worker client of CompositorWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use local root frame and remove unneeded includes. Created 4 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 | « third_party/WebKit/Source/web/web.gypi ('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 19 matching lines...) Expand all
30 30
31 #ifndef WebFrameWidget_h 31 #ifndef WebFrameWidget_h
32 #define WebFrameWidget_h 32 #define WebFrameWidget_h
33 33
34 #include "../platform/WebCommon.h" 34 #include "../platform/WebCommon.h"
35 #include "../platform/WebPageVisibilityState.h" 35 #include "../platform/WebPageVisibilityState.h"
36 #include "public/web/WebWidget.h" 36 #include "public/web/WebWidget.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class CompositorProxyClient;
40 class WebLocalFrame; 41 class WebLocalFrame;
41 class WebView; 42 class WebView;
42 class WebWidgetClient; 43 class WebWidgetClient;
43 44
44 class WebFrameWidget : public WebWidget { 45 class WebFrameWidget : public WebWidget {
45 public: 46 public:
46 BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebLocalFrame*) ; 47 BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebLocalFrame*) ;
47 // Creates a frame widget for a WebView. Temporary helper to help transition 48 // Creates a frame widget for a WebView. Temporary helper to help transition
48 // away from WebView inheriting WebWidget. 49 // away from WebView inheriting WebWidget.
49 // TODO(dcheng): Remove once transition is complete. 50 // TODO(dcheng): Remove once transition is complete.
(...skipping 19 matching lines...) Expand all
69 // persists across subsequent navigations. Defaults to white prior to the 70 // persists across subsequent navigations. Defaults to white prior to the
70 // first call to this method. 71 // first call to this method.
71 virtual void setBaseBackgroundColor(WebColor) = 0; 72 virtual void setBaseBackgroundColor(WebColor) = 0;
72 73
73 // TODO(dcheng): Temporary: there should only be one WebFrameWidget 74 // TODO(dcheng): Temporary: there should only be one WebFrameWidget
74 // implementation but the Blink API is currently in a transition state. 75 // implementation but the Blink API is currently in a transition state.
75 // See https://goo.gl/7yVrnb. These methods should only be used inside 76 // See https://goo.gl/7yVrnb. These methods should only be used inside
76 // blink. 77 // blink.
77 virtual bool forSubframe() const { return true; } 78 virtual bool forSubframe() const { return true; }
78 virtual void scheduleAnimation() = 0; 79 virtual void scheduleAnimation() = 0;
80 virtual CompositorProxyClient* createCompositorProxyClient() = 0;
79 virtual WebWidgetClient* client() const = 0; 81 virtual WebWidgetClient* client() const = 0;
80 }; 82 };
81 83
82 } // namespace blink 84 } // namespace blink
83 85
84 #endif 86 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/web.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698