| 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 const string16& title); | 570 const string16& title); |
| 571 void OnRegisterIntentHandler(const string16& action, | 571 void OnRegisterIntentHandler(const string16& action, |
| 572 const string16& type, | 572 const string16& type, |
| 573 const string16& href, | 573 const string16& href, |
| 574 const string16& title); | 574 const string16& title); |
| 575 void OnWebIntentDispatch(const IPC::Message& message, | 575 void OnWebIntentDispatch(const IPC::Message& message, |
| 576 const string16& action, | 576 const string16& action, |
| 577 const string16& type, | 577 const string16& type, |
| 578 const string16& data, | 578 const string16& data, |
| 579 int intent_id); | 579 int intent_id); |
| 580 void OnFindReply(int request_id, int number_of_matches, |
| 581 const gfx::Rect& selection_rect, int active_match_ordinal, |
| 582 bool final_update); |
| 580 | 583 |
| 581 // Changes the IsLoading state and notifies delegate as needed | 584 // Changes the IsLoading state and notifies delegate as needed |
| 582 // |details| is used to provide details on the load that just finished | 585 // |details| is used to provide details on the load that just finished |
| 583 // (but can be null if not applicable). Can be overridden. | 586 // (but can be null if not applicable). Can be overridden. |
| 584 void SetIsLoading(bool is_loading, | 587 void SetIsLoading(bool is_loading, |
| 585 LoadNotificationDetails* details); | 588 LoadNotificationDetails* details); |
| 586 | 589 |
| 587 // Called by derived classes to indicate that we're no longer waiting for a | 590 // Called by derived classes to indicate that we're no longer waiting for a |
| 588 // response. This won't actually update the throbber, but it will get picked | 591 // response. This won't actually update the throbber, but it will get picked |
| 589 // up at the next animation step if the throbber is going. | 592 // up at the next animation step if the throbber is going. |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 ObserverList<TabContentsObserver> observers_; | 882 ObserverList<TabContentsObserver> observers_; |
| 880 | 883 |
| 881 // Content restrictions, used to disable print/copy etc based on content's | 884 // Content restrictions, used to disable print/copy etc based on content's |
| 882 // (full-page plugins for now only) permissions. | 885 // (full-page plugins for now only) permissions. |
| 883 int content_restrictions_; | 886 int content_restrictions_; |
| 884 | 887 |
| 885 DISALLOW_COPY_AND_ASSIGN(TabContents); | 888 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 886 }; | 889 }; |
| 887 | 890 |
| 888 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 891 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |