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_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 namespace net { | 33 namespace net { |
34 struct LoadStateWithParam; | 34 struct LoadStateWithParam; |
35 } | 35 } |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 | 38 |
39 class BrowserContext; | 39 class BrowserContext; |
40 class InterstitialPage; | 40 class InterstitialPage; |
| 41 class PageState; |
41 class RenderProcessHost; | 42 class RenderProcessHost; |
42 class RenderViewHost; | 43 class RenderViewHost; |
43 class RenderWidgetHostView; | 44 class RenderWidgetHostView; |
44 class SiteInstance; | 45 class SiteInstance; |
45 class WebContentsDelegate; | 46 class WebContentsDelegate; |
46 class WebContentsView; | 47 class WebContentsView; |
47 struct RendererPreferences; | 48 struct RendererPreferences; |
48 | 49 |
49 // WebContents is the core class in content/. A WebContents renders web content | 50 // WebContents is the core class in content/. A WebContents renders web content |
50 // (usually HTML) in a rectangular area. | 51 // (usually HTML) in a rectangular area. |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 virtual double GetZoomLevel() const = 0; | 369 virtual double GetZoomLevel() const = 0; |
369 | 370 |
370 // Gets the zoom percent for this tab. | 371 // Gets the zoom percent for this tab. |
371 virtual int GetZoomPercent(bool* enable_increment, | 372 virtual int GetZoomPercent(bool* enable_increment, |
372 bool* enable_decrement) const = 0; | 373 bool* enable_decrement) const = 0; |
373 | 374 |
374 // Opens view-source tab for this contents. | 375 // Opens view-source tab for this contents. |
375 virtual void ViewSource() = 0; | 376 virtual void ViewSource() = 0; |
376 | 377 |
377 virtual void ViewFrameSource(const GURL& url, | 378 virtual void ViewFrameSource(const GURL& url, |
378 const std::string& content_state)= 0; | 379 const PageState& page_state)= 0; |
379 | 380 |
380 // Gets the minimum/maximum zoom percent. | 381 // Gets the minimum/maximum zoom percent. |
381 virtual int GetMinimumZoomPercent() const = 0; | 382 virtual int GetMinimumZoomPercent() const = 0; |
382 virtual int GetMaximumZoomPercent() const = 0; | 383 virtual int GetMaximumZoomPercent() const = 0; |
383 | 384 |
384 // Gets the preferred size of the contents. | 385 // Gets the preferred size of the contents. |
385 virtual gfx::Size GetPreferredSize() const = 0; | 386 virtual gfx::Size GetPreferredSize() const = 0; |
386 | 387 |
387 // Get the content restrictions (see content::ContentRestriction). | 388 // Get the content restrictions (see content::ContentRestriction). |
388 virtual int GetContentRestrictions() const = 0; | 389 virtual int GetContentRestrictions() const = 0; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 | 429 |
429 private: | 430 private: |
430 // This interface should only be implemented inside content. | 431 // This interface should only be implemented inside content. |
431 friend class WebContentsImpl; | 432 friend class WebContentsImpl; |
432 WebContents() {} | 433 WebContents() {} |
433 }; | 434 }; |
434 | 435 |
435 } // namespace content | 436 } // namespace content |
436 | 437 |
437 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 438 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |