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

Side by Side Diff: sky/engine/public/web/WebFrameClient.h

Issue 682413006: Add a separate call to initialize the bounds for a sky <iframe> element. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 class WebFrameClient { 61 class WebFrameClient {
62 public: 62 public:
63 // General notifications ----------------------------------------------- 63 // General notifications -----------------------------------------------
64 64
65 // A child frame was created in this frame. This is called when the frame 65 // A child frame was created in this frame. This is called when the frame
66 // is created and initialized. Takes the name of the new frame, the parent 66 // is created and initialized. Takes the name of the new frame, the parent
67 // frame and returns a new WebFrame. The WebFrame is considered in-use 67 // frame and returns a new WebFrame. The WebFrame is considered in-use
68 // until frameDetached() is called on it. 68 // until frameDetached() is called on it.
69 // Note: If you override this, you should almost certainly be overriding 69 // Note: If you override this, you should almost certainly be overriding
70 // frameDetached(). 70 // frameDetached().
71 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f rameName) { return 0; } 71 virtual uint32_t createChildFrame(const WebURL& url) { return static_cast<ui nt32_t>(-1); }
72 72
73 virtual void createChildView(const WebURL& url) { } 73 // Initalize parameters for the given child frame.
74 virtual void initializeChildFrame(uint32_t frame_id, const blink::WebRect& b ounds) { }
74 75
75 // This frame has been detached from the view, but has not been closed yet. 76 // This frame has been detached from the view, but has not been closed yet.
77 // TODO(mpcomplete): reuse these.
76 virtual void frameDetached(WebFrame*) { } 78 virtual void frameDetached(WebFrame*) { }
77 79
78 // This frame has become focused.. 80 // This frame has become focused..
79 virtual void frameFocused() { } 81 virtual void frameFocused() { }
80 82
81 // This frame is about to be closed. This is called after frameDetached, 83 // This frame is about to be closed. This is called after frameDetached,
82 // when the document is being unloaded, due to new one committing. 84 // when the document is being unloaded, due to new one committing.
83 virtual void willClose(WebFrame*) { } 85 virtual void willClose(WebFrame*) { }
84 86
85 // FIXME(sky): remove. 87 // FIXME(sky): remove.
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 237
236 // Notifies the client that a WebGL context was lost on this page with the 238 // Notifies the client that a WebGL context was lost on this page with the
237 // given reason (one of the GL_ARB_robustness status codes; see 239 // given reason (one of the GL_ARB_robustness status codes; see
238 // Extensions3D.h in WebCore/platform/graphics). 240 // Extensions3D.h in WebCore/platform/graphics).
239 virtual void didLoseWebGLContext(WebLocalFrame*, int) { } 241 virtual void didLoseWebGLContext(WebLocalFrame*, int) { }
240 242
241 // FIXME: Remove this method once we have input routing in the browser 243 // FIXME: Remove this method once we have input routing in the browser
242 // process. See http://crbug.com/339659. 244 // process. See http://crbug.com/339659.
243 virtual void forwardInputEvent(const WebInputEvent*) { } 245 virtual void forwardInputEvent(const WebInputEvent*) { }
244 246
245 // Send initial drawing parameters to a child frame that is being rendered o ut of process.
246 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { }
247
248 protected: 247 protected:
249 virtual ~WebFrameClient() { } 248 virtual ~WebFrameClient() { }
250 }; 249 };
251 250
252 } // namespace blink 251 } // namespace blink
253 252
254 #endif 253 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698