OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |