| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 // string entered, whatever tab that search was performed in. | 486 // string entered, whatever tab that search was performed in. |
| 487 string16 find_prepopulate_text() const { | 487 string16 find_prepopulate_text() const { |
| 488 return *last_search_prepopulate_text_; | 488 return *last_search_prepopulate_text_; |
| 489 } | 489 } |
| 490 | 490 |
| 491 // Accessor for find_result_. | 491 // Accessor for find_result_. |
| 492 const FindNotificationDetails& find_result() const { | 492 const FindNotificationDetails& find_result() const { |
| 493 return last_search_result_; | 493 return last_search_result_; |
| 494 } | 494 } |
| 495 | 495 |
| 496 // Get the most probable language of the text content in the tab. |
| 497 void GetPageLanguage(); |
| 498 |
| 496 // Misc state & callbacks ---------------------------------------------------- | 499 // Misc state & callbacks ---------------------------------------------------- |
| 497 | 500 |
| 498 // Set whether the contents should block javascript message boxes or not. | 501 // Set whether the contents should block javascript message boxes or not. |
| 499 // Default is not to block any message boxes. | 502 // Default is not to block any message boxes. |
| 500 void set_suppress_javascript_messages(bool suppress_javascript_messages) { | 503 void set_suppress_javascript_messages(bool suppress_javascript_messages) { |
| 501 suppress_javascript_messages_ = suppress_javascript_messages; | 504 suppress_javascript_messages_ = suppress_javascript_messages; |
| 502 } | 505 } |
| 503 | 506 |
| 504 // AppModalDialog calls this when the dialog is closed. | 507 // AppModalDialog calls this when the dialog is closed. |
| 505 void OnJavaScriptMessageBoxClosed(IPC::Message* reply_msg, | 508 void OnJavaScriptMessageBoxClosed(IPC::Message* reply_msg, |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 // True if the user has decided to block future javascript messages. This is | 1077 // True if the user has decided to block future javascript messages. This is |
| 1075 // reset on navigations to false on navigations. | 1078 // reset on navigations to false on navigations. |
| 1076 bool suppress_javascript_messages_; | 1079 bool suppress_javascript_messages_; |
| 1077 | 1080 |
| 1078 // --------------------------------------------------------------------------- | 1081 // --------------------------------------------------------------------------- |
| 1079 | 1082 |
| 1080 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1083 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1081 }; | 1084 }; |
| 1082 | 1085 |
| 1083 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1086 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |