OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 virtual void OnCloseStarted() OVERRIDE; | 269 virtual void OnCloseStarted() OVERRIDE; |
270 virtual void SystemDragEnded() OVERRIDE; | 270 virtual void SystemDragEnded() OVERRIDE; |
271 virtual void UserGestureDone() OVERRIDE; | 271 virtual void UserGestureDone() OVERRIDE; |
272 virtual void SetClosedByUserGesture(bool value) OVERRIDE; | 272 virtual void SetClosedByUserGesture(bool value) OVERRIDE; |
273 virtual bool GetClosedByUserGesture() const OVERRIDE; | 273 virtual bool GetClosedByUserGesture() const OVERRIDE; |
274 virtual double GetZoomLevel() const OVERRIDE; | 274 virtual double GetZoomLevel() const OVERRIDE; |
275 virtual int GetZoomPercent(bool* enable_increment, | 275 virtual int GetZoomPercent(bool* enable_increment, |
276 bool* enable_decrement) const OVERRIDE; | 276 bool* enable_decrement) const OVERRIDE; |
277 virtual void ViewSource() OVERRIDE; | 277 virtual void ViewSource() OVERRIDE; |
278 virtual void ViewFrameSource(const GURL& url, | 278 virtual void ViewFrameSource(const GURL& url, |
279 const std::string& content_state) OVERRIDE; | 279 const PageState& page_state) OVERRIDE; |
280 virtual int GetMinimumZoomPercent() const OVERRIDE; | 280 virtual int GetMinimumZoomPercent() const OVERRIDE; |
281 virtual int GetMaximumZoomPercent() const OVERRIDE; | 281 virtual int GetMaximumZoomPercent() const OVERRIDE; |
282 virtual gfx::Size GetPreferredSize() const OVERRIDE; | 282 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
283 virtual int GetContentRestrictions() const OVERRIDE; | 283 virtual int GetContentRestrictions() const OVERRIDE; |
284 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE; | 284 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE; |
285 virtual bool HasOpener() const OVERRIDE; | 285 virtual bool HasOpener() const OVERRIDE; |
286 virtual void DidChooseColorInColorChooser(SkColor color) OVERRIDE; | 286 virtual void DidChooseColorInColorChooser(SkColor color) OVERRIDE; |
287 virtual void DidEndColorChooser() OVERRIDE; | 287 virtual void DidEndColorChooser() OVERRIDE; |
288 virtual int DownloadImage(const GURL& url, | 288 virtual int DownloadImage(const GURL& url, |
289 bool is_favicon, | 289 bool is_favicon, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 const GURL& target_url) OVERRIDE; | 327 const GURL& target_url) OVERRIDE; |
328 virtual void DidFailProvisionalLoadWithError( | 328 virtual void DidFailProvisionalLoadWithError( |
329 RenderViewHost* render_view_host, | 329 RenderViewHost* render_view_host, |
330 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params) | 330 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params) |
331 OVERRIDE; | 331 OVERRIDE; |
332 virtual void DidNavigate( | 332 virtual void DidNavigate( |
333 RenderViewHost* render_view_host, | 333 RenderViewHost* render_view_host, |
334 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; | 334 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; |
335 virtual void UpdateState(RenderViewHost* render_view_host, | 335 virtual void UpdateState(RenderViewHost* render_view_host, |
336 int32 page_id, | 336 int32 page_id, |
337 const std::string& state) OVERRIDE; | 337 const PageState& page_state) OVERRIDE; |
338 virtual void UpdateTitle(RenderViewHost* render_view_host, | 338 virtual void UpdateTitle(RenderViewHost* render_view_host, |
339 int32 page_id, | 339 int32 page_id, |
340 const string16& title, | 340 const string16& title, |
341 base::i18n::TextDirection title_direction) OVERRIDE; | 341 base::i18n::TextDirection title_direction) OVERRIDE; |
342 virtual void UpdateEncoding(RenderViewHost* render_view_host, | 342 virtual void UpdateEncoding(RenderViewHost* render_view_host, |
343 const std::string& encoding) OVERRIDE; | 343 const std::string& encoding) OVERRIDE; |
344 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE; | 344 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE; |
345 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; | 345 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; |
346 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE; | 346 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE; |
347 virtual void SwappedOut(RenderViewHost* render_view_host) OVERRIDE; | 347 virtual void SwappedOut(RenderViewHost* render_view_host) OVERRIDE; |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 // Maps the ids of pending image downloads to their callbacks | 936 // Maps the ids of pending image downloads to their callbacks |
937 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 937 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
938 ImageDownloadMap image_download_map_; | 938 ImageDownloadMap image_download_map_; |
939 | 939 |
940 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 940 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
941 }; | 941 }; |
942 | 942 |
943 } // namespace content | 943 } // namespace content |
944 | 944 |
945 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 945 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |