| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual GURL GetURL() const; | 103 virtual GURL GetURL() const; |
| 104 virtual GURL GetFavIconURL() const; | 104 virtual GURL GetFavIconURL() const; |
| 105 virtual GURL GetOSDDURL() const; | 105 virtual GURL GetOSDDURL() const; |
| 106 virtual WebDataSource* GetDataSource() const; | 106 virtual WebDataSource* GetDataSource() const; |
| 107 virtual WebDataSource* GetProvisionalDataSource() const; | 107 virtual WebDataSource* GetProvisionalDataSource() const; |
| 108 virtual void StopLoading(); | 108 virtual void StopLoading(); |
| 109 virtual WebFrame* GetOpener() const; | 109 virtual WebFrame* GetOpener() const; |
| 110 virtual WebFrame* GetParent() const; | 110 virtual WebFrame* GetParent() const; |
| 111 virtual WebFrame* GetChildFrame(const std::wstring& xpath) const; | 111 virtual WebFrame* GetChildFrame(const std::wstring& xpath) const; |
| 112 virtual WebView* GetView() const; | 112 virtual WebView* GetView() const; |
| 113 virtual bool CaptureImage(scoped_ptr<gfx::BitmapPlatformDevice>* image, | 113 virtual bool CaptureImage(scoped_ptr<skia::BitmapPlatformDevice>* image, |
| 114 bool scroll_to_zero); | 114 bool scroll_to_zero); |
| 115 | 115 |
| 116 // This method calls createRuntimeObject (in KJS::Bindings::Instance), which | 116 // This method calls createRuntimeObject (in KJS::Bindings::Instance), which |
| 117 // increments the refcount of the NPObject passed in. | 117 // increments the refcount of the NPObject passed in. |
| 118 virtual void BindToWindowObject(const std::wstring& name, NPObject* object); | 118 virtual void BindToWindowObject(const std::wstring& name, NPObject* object); |
| 119 virtual void CallJSGC(); | 119 virtual void CallJSGC(); |
| 120 | 120 |
| 121 virtual void* GetFrameImplementation() { return frame(); } | 121 virtual void* GetFrameImplementation() { return frame(); } |
| 122 | 122 |
| 123 virtual void GetContentAsPlainText(int max_chars, std::wstring* text) const; | 123 virtual void GetContentAsPlainText(int max_chars, std::wstring* text) const; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 virtual void ClosePage(); | 161 virtual void ClosePage(); |
| 162 | 162 |
| 163 virtual gfx::Size ScrollOffset() const; | 163 virtual gfx::Size ScrollOffset() const; |
| 164 | 164 |
| 165 virtual bool SetPrintingMode(bool printing, | 165 virtual bool SetPrintingMode(bool printing, |
| 166 float page_width_min, | 166 float page_width_min, |
| 167 float page_width_max, | 167 float page_width_max, |
| 168 int* width); | 168 int* width); |
| 169 virtual int ComputePageRects(const gfx::Size& page_size_px); | 169 virtual int ComputePageRects(const gfx::Size& page_size_px); |
| 170 virtual void GetPageRect(int page, gfx::Rect* page_size) const; | 170 virtual void GetPageRect(int page, gfx::Rect* page_size) const; |
| 171 virtual bool SpoolPage(int page, gfx::PlatformCanvas* canvas); | 171 virtual bool SpoolPage(int page, skia::PlatformCanvas* canvas); |
| 172 | 172 |
| 173 // Reformats this frame for printing or for screen display, depending on | 173 // Reformats this frame for printing or for screen display, depending on |
| 174 // |printing| flag. Acts recursively on inner frames. | 174 // |printing| flag. Acts recursively on inner frames. |
| 175 // Note: It fails if the main frame failed to load. It will succeed even if a | 175 // Note: It fails if the main frame failed to load. It will succeed even if a |
| 176 // child frame failed to load. | 176 // child frame failed to load. |
| 177 void SetPrinting(bool printing, float page_width_min, float page_width_max); | 177 void SetPrinting(bool printing, float page_width_min, float page_width_max); |
| 178 | 178 |
| 179 PassRefPtr<WebCore::Frame> CreateChildFrame( | 179 PassRefPtr<WebCore::Frame> CreateChildFrame( |
| 180 const WebCore::FrameLoadRequest&, | 180 const WebCore::FrameLoadRequest&, |
| 181 WebCore::HTMLFrameOwnerElement* owner_element); | 181 WebCore::HTMLFrameOwnerElement* owner_element); |
| 182 | 182 |
| 183 // WebFrameImpl | 183 // WebFrameImpl |
| 184 void Layout(); | 184 void Layout(); |
| 185 void Paint(gfx::PlatformCanvas* canvas, const gfx::Rect& rect); | 185 void Paint(skia::PlatformCanvas* canvas, const gfx::Rect& rect); |
| 186 | 186 |
| 187 bool IsLoading(); | 187 bool IsLoading(); |
| 188 | 188 |
| 189 void CreateFrameView(); | 189 void CreateFrameView(); |
| 190 | 190 |
| 191 // The plugin delegate is used to get notifications when downloads complete. | 191 // The plugin delegate is used to get notifications when downloads complete. |
| 192 // This is used by the NPAPI method getURLNotify. plugin_delegate() may | 192 // This is used by the NPAPI method getURLNotify. plugin_delegate() may |
| 193 // return NULL. TODO(darin): how come there is only one per frame?!? | 193 // return NULL. TODO(darin): how come there is only one per frame?!? |
| 194 WebPluginDelegate* plugin_delegate() const { | 194 WebPluginDelegate* plugin_delegate() const { |
| 195 return plugin_delegate_; | 195 return plugin_delegate_; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 // The input fields that are interested in edit events and their associated | 428 // The input fields that are interested in edit events and their associated |
| 429 // listeners. | 429 // listeners. |
| 430 typedef HashMap<RefPtr<WebCore::HTMLInputElement>, | 430 typedef HashMap<RefPtr<WebCore::HTMLInputElement>, |
| 431 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap; | 431 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap; |
| 432 PasswordListenerMap password_listeners_; | 432 PasswordListenerMap password_listeners_; |
| 433 | 433 |
| 434 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); | 434 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); |
| 435 }; | 435 }; |
| 436 | 436 |
| 437 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ | 437 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ |
| OLD | NEW |