| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 } | 389 } |
| 390 | 390 |
| 391 // Misc state & callbacks ---------------------------------------------------- | 391 // Misc state & callbacks ---------------------------------------------------- |
| 392 | 392 |
| 393 // Set whether the contents should block javascript message boxes or not. | 393 // Set whether the contents should block javascript message boxes or not. |
| 394 // Default is not to block any message boxes. | 394 // Default is not to block any message boxes. |
| 395 void set_suppress_javascript_messages(bool suppress_javascript_messages) { | 395 void set_suppress_javascript_messages(bool suppress_javascript_messages) { |
| 396 suppress_javascript_messages_ = suppress_javascript_messages; | 396 suppress_javascript_messages_ = suppress_javascript_messages; |
| 397 } | 397 } |
| 398 | 398 |
| 399 // Tells the user's email client to open a compose window containing the | |
| 400 // current page's URL. | |
| 401 void EmailPageLocation(); | |
| 402 | |
| 403 // Returns true if the active NavigationEntry's page_id equals page_id. | 399 // Returns true if the active NavigationEntry's page_id equals page_id. |
| 404 bool IsActiveEntry(int32 page_id); | 400 bool IsActiveEntry(int32 page_id); |
| 405 | 401 |
| 406 const std::string& contents_mime_type() const { | 402 const std::string& contents_mime_type() const { |
| 407 return contents_mime_type_; | 403 return contents_mime_type_; |
| 408 } | 404 } |
| 409 | 405 |
| 410 // Returns true if this TabContents will notify about disconnection. | 406 // Returns true if this TabContents will notify about disconnection. |
| 411 bool notify_disconnection() const { return notify_disconnection_; } | 407 bool notify_disconnection() const { return notify_disconnection_; } |
| 412 | 408 |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 ObserverList<TabContentsObserver> observers_; | 911 ObserverList<TabContentsObserver> observers_; |
| 916 | 912 |
| 917 // Content restrictions, used to disable print/copy etc based on content's | 913 // Content restrictions, used to disable print/copy etc based on content's |
| 918 // (full-page plugins for now only) permissions. | 914 // (full-page plugins for now only) permissions. |
| 919 int content_restrictions_; | 915 int content_restrictions_; |
| 920 | 916 |
| 921 DISALLOW_COPY_AND_ASSIGN(TabContents); | 917 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 922 }; | 918 }; |
| 923 | 919 |
| 924 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 920 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |