| 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 // such as closing the window. The setter is maintained by TabStripModel, and | 327 // such as closing the window. The setter is maintained by TabStripModel, and |
| 328 // the getter only useful from within TAB_CLOSED notification | 328 // the getter only useful from within TAB_CLOSED notification |
| 329 virtual void SetClosedByUserGesture(bool value) = 0; | 329 virtual void SetClosedByUserGesture(bool value) = 0; |
| 330 virtual bool GetClosedByUserGesture() const = 0; | 330 virtual bool GetClosedByUserGesture() const = 0; |
| 331 | 331 |
| 332 // Gets the zoom level for this tab. | 332 // Gets the zoom level for this tab. |
| 333 virtual double GetZoomLevel() const = 0; | 333 virtual double GetZoomLevel() const = 0; |
| 334 | 334 |
| 335 // Gets the zoom percent for this tab. | 335 // Gets the zoom percent for this tab. |
| 336 virtual int GetZoomPercent(bool* enable_increment, | 336 virtual int GetZoomPercent(bool* enable_increment, |
| 337 bool* enable_decrement) = 0; | 337 bool* enable_decrement) const = 0; |
| 338 | 338 |
| 339 // Opens view-source tab for this contents. | 339 // Opens view-source tab for this contents. |
| 340 virtual void ViewSource() = 0; | 340 virtual void ViewSource() = 0; |
| 341 | 341 |
| 342 virtual void ViewFrameSource(const GURL& url, | 342 virtual void ViewFrameSource(const GURL& url, |
| 343 const std::string& content_state)= 0; | 343 const std::string& content_state)= 0; |
| 344 | 344 |
| 345 // Gets the minimum/maximum zoom percent. | 345 // Gets the minimum/maximum zoom percent. |
| 346 virtual int GetMinimumZoomPercent() const = 0; | 346 virtual int GetMinimumZoomPercent() const = 0; |
| 347 virtual int GetMaximumZoomPercent() const = 0; | 347 virtual int GetMaximumZoomPercent() const = 0; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 // Focuses the location bar. | 379 // Focuses the location bar. |
| 380 virtual void SetFocusToLocationBar(bool select_all) = 0; | 380 virtual void SetFocusToLocationBar(bool select_all) = 0; |
| 381 | 381 |
| 382 // Does this have an opener associated with it? | 382 // Does this have an opener associated with it? |
| 383 virtual bool HasOpener() const = 0; | 383 virtual bool HasOpener() const = 0; |
| 384 }; | 384 }; |
| 385 | 385 |
| 386 } // namespace content | 386 } // namespace content |
| 387 | 387 |
| 388 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 388 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |