| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // auto-detect, http header, meta, bom detection, etc). | 256 // auto-detect, http header, meta, bom detection, etc). |
| 257 void override_encoding(const std::wstring& encoding) { | 257 void override_encoding(const std::wstring& encoding) { |
| 258 set_encoding(encoding); | 258 set_encoding(encoding); |
| 259 render_view_host()->SetPageEncoding(encoding); | 259 render_view_host()->SetPageEncoding(encoding); |
| 260 } | 260 } |
| 261 | 261 |
| 262 void CrossSiteNavigationCanceled() { | 262 void CrossSiteNavigationCanceled() { |
| 263 render_manager_.CrossSiteNavigationCanceled(); | 263 render_manager_.CrossSiteNavigationCanceled(); |
| 264 } | 264 } |
| 265 | 265 |
| 266 void WindowMoveOrResizeStarted() { |
| 267 render_view_host()->WindowMoveOrResizeStarted(); |
| 268 } |
| 269 |
| 266 protected: | 270 protected: |
| 267 // Should be deleted via CloseContents. | 271 // Should be deleted via CloseContents. |
| 268 virtual ~WebContents(); | 272 virtual ~WebContents(); |
| 269 | 273 |
| 270 RenderWidgetHostView* render_widget_host_view() const { | 274 RenderWidgetHostView* render_widget_host_view() const { |
| 271 return render_manager_.current_view(); | 275 return render_manager_.current_view(); |
| 272 } | 276 } |
| 273 | 277 |
| 274 // TabContents (private overrides) ------------------------------------------- | 278 // TabContents (private overrides) ------------------------------------------- |
| 275 | 279 |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 | 656 |
| 653 // The last find result. This object contains details about the number of | 657 // The last find result. This object contains details about the number of |
| 654 // matches, the find selection rectangle, etc. The UI can access this | 658 // matches, the find selection rectangle, etc. The UI can access this |
| 655 // information to build its presentation. | 659 // information to build its presentation. |
| 656 FindNotificationDetails find_result_; | 660 FindNotificationDetails find_result_; |
| 657 | 661 |
| 658 DISALLOW_COPY_AND_ASSIGN(WebContents); | 662 DISALLOW_COPY_AND_ASSIGN(WebContents); |
| 659 }; | 663 }; |
| 660 | 664 |
| 661 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ | 665 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ |
| OLD | NEW |