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

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

Issue 793393003: Move the call to mojo::View::Embed to HTMLIFrameElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/loader/FrameLoaderClient.h ('k') | sky/engine/web/FrameLoaderClientImpl.h » ('j') | 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) 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class WebFrameClient { 62 class WebFrameClient {
63 public: 63 public:
64 // General notifications ----------------------------------------------- 64 // General notifications -----------------------------------------------
65 65
66 // A child frame was created in this frame. This is called when the frame 66 // A child frame was created in this frame. This is called when the frame
67 // is created and initialized. Takes the name of the new frame, the parent 67 // is created and initialized. Takes the name of the new frame, the parent
68 // frame and returns a new WebFrame. The WebFrame is considered in-use 68 // frame and returns a new WebFrame. The WebFrame is considered in-use
69 // until frameDetached() is called on it. 69 // until frameDetached() is called on it.
70 // Note: If you override this, you should almost certainly be overriding 70 // Note: If you override this, you should almost certainly be overriding
71 // frameDetached(). 71 // frameDetached().
72 virtual mojo::View* createChildFrame(const WebURL& url) { return nullptr; } 72 virtual mojo::View* createChildFrame() { return nullptr; }
73 73
74 // This frame has been detached from the view, but has not been closed yet. 74 // This frame has been detached from the view, but has not been closed yet.
75 // TODO(mpcomplete): reuse these. 75 // TODO(mpcomplete): reuse these.
76 virtual void frameDetached(WebFrame*) { } 76 virtual void frameDetached(WebFrame*) { }
77 77
78 // This frame has become focused.. 78 // This frame has become focused..
79 virtual void frameFocused() { } 79 virtual void frameFocused() { }
80 80
81 // This frame is about to be closed. This is called after frameDetached, 81 // This frame is about to be closed. This is called after frameDetached,
82 // when the document is being unloaded, due to new one committing. 82 // when the document is being unloaded, due to new one committing.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // process. See http://crbug.com/339659. 242 // process. See http://crbug.com/339659.
243 virtual void forwardInputEvent(const WebInputEvent*) { } 243 virtual void forwardInputEvent(const WebInputEvent*) { }
244 244
245 protected: 245 protected:
246 virtual ~WebFrameClient() { } 246 virtual ~WebFrameClient() { }
247 }; 247 };
248 248
249 } // namespace blink 249 } // namespace blink
250 250
251 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAMECLIENT_H_ 251 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAMECLIENT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/loader/FrameLoaderClient.h ('k') | sky/engine/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698