Chromium Code Reviews| Index: chrome/browser/automation/automation_tab_helper.h |
| diff --git a/chrome/browser/automation/automation_tab_helper.h b/chrome/browser/automation/automation_tab_helper.h |
| index d3016d854efcddad1fde91bf74e8df8d238f3793..49b7ae32cf35ae2e289a3aee4bef0f56d3949665 100644 |
| --- a/chrome/browser/automation/automation_tab_helper.h |
| +++ b/chrome/browser/automation/automation_tab_helper.h |
| @@ -17,6 +17,10 @@ |
| class TabContents; |
| class AutomationTabHelper; |
| +namespace gfx { |
| +class Size; |
|
Paweł Hajdan Jr.
2011/10/18 10:21:35
nit: Is this needed?
kkania
2011/10/18 18:30:19
Done.
|
| +} |
| + |
| namespace IPC { |
| class Message; |
| } |
| @@ -48,6 +52,12 @@ class TabEventObserver { |
| // This method will always be called if |OnFirstPendingLoad| was called. |
| virtual void OnNoMorePendingLoads(TabContents* tab_contents) { } |
| + // Called as a result of a tab being snapshotted. |
| + virtual void OnSnapshotEntirePageACK( |
| + bool success, |
| + const std::vector<unsigned char>& png_data, |
| + const std::string& error_msg) { } |
| + |
| protected: |
| TabEventObserver(); |
| virtual ~TabEventObserver(); |
| @@ -84,6 +94,9 @@ class AutomationTabHelper |
| void AddObserver(TabEventObserver* observer); |
| void RemoveObserver(TabEventObserver* observer); |
| + // Snapshots the entire page without resizing. |
| + void SnapshotEntirePage(); |
| + |
| // Returns true if the tab is loading or the tab is scheduled to load |
| // immediately. Note that scheduled loads may be canceled. |
| bool has_pending_loads() const; |
| @@ -91,6 +104,11 @@ class AutomationTabHelper |
| private: |
| friend class AutomationTabHelperTest; |
| + void OnSnapshotEntirePageACK( |
| + bool success, |
| + const std::vector<unsigned char>& png_data, |
| + const std::string& error_msg); |
| + |
| // TabContentsObserver implementation. |
| virtual void DidStartLoading(); |
| virtual void DidStopLoading(); |