OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <deque> | 10 #include <deque> |
11 #include <map> | 11 #include <map> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "app/gfx/native_widget_types.h" | 16 #include "app/gfx/native_widget_types.h" |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/gfx/rect.h" | 18 #include "base/gfx/rect.h" |
19 #include "base/scoped_ptr.h" | 19 #include "base/scoped_ptr.h" |
20 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 20 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
21 #include "chrome/browser/cancelable_request.h" | 21 #include "chrome/browser/cancelable_request.h" |
22 #include "chrome/browser/dom_ui/dom_ui_factory.h" | 22 #include "chrome/browser/dom_ui/dom_ui_factory.h" |
23 #include "chrome/browser/download/save_package.h" | 23 #include "chrome/browser/download/save_package.h" |
24 #include "chrome/browser/fav_icon_helper.h" | 24 #include "chrome/browser/fav_icon_helper.h" |
| 25 #include "chrome/browser/find_bar_controller.h" |
25 #include "chrome/browser/find_notification_details.h" | 26 #include "chrome/browser/find_notification_details.h" |
26 #include "chrome/browser/jsmessage_box_client.h" | 27 #include "chrome/browser/jsmessage_box_client.h" |
27 #include "chrome/browser/net/url_request_context_getter.h" | 28 #include "chrome/browser/net/url_request_context_getter.h" |
28 #include "chrome/browser/printing/print_view_manager.h" | 29 #include "chrome/browser/printing/print_view_manager.h" |
29 #include "chrome/browser/shell_dialogs.h" | 30 #include "chrome/browser/shell_dialogs.h" |
30 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 31 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
31 #include "chrome/browser/tab_contents/constrained_window.h" | 32 #include "chrome/browser/tab_contents/constrained_window.h" |
32 #include "chrome/browser/tab_contents/infobar_delegate.h" | 33 #include "chrome/browser/tab_contents/infobar_delegate.h" |
33 #include "chrome/browser/tab_contents/language_state.h" | 34 #include "chrome/browser/tab_contents/language_state.h" |
34 #include "chrome/browser/tab_contents/navigation_controller.h" | 35 #include "chrome/browser/tab_contents/navigation_controller.h" |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 // Starts the Find operation by calling StartFinding on the Tab. This function | 493 // Starts the Find operation by calling StartFinding on the Tab. This function |
493 // can be called from the outside as a result of hot-keys, so it uses the | 494 // can be called from the outside as a result of hot-keys, so it uses the |
494 // last remembered search string as specified with set_find_string(). This | 495 // last remembered search string as specified with set_find_string(). This |
495 // function does not block while a search is in progress. The controller will | 496 // function does not block while a search is in progress. The controller will |
496 // receive the results through the notification mechanism. See Observe(...) | 497 // receive the results through the notification mechanism. See Observe(...) |
497 // for details. | 498 // for details. |
498 void StartFinding(string16 search_string, | 499 void StartFinding(string16 search_string, |
499 bool forward_direction, | 500 bool forward_direction, |
500 bool case_sensitive); | 501 bool case_sensitive); |
501 | 502 |
502 // Stops the current Find operation. If |clear_selection| is true, it will | 503 // Stops the current Find operation. |
503 // also clear the selection on the focused frame. | 504 void StopFinding(FindBarController::SelectionAction selection_action); |
504 void StopFinding(bool clear_selection); | |
505 | 505 |
506 // Accessors/Setters for find_ui_active_. | 506 // Accessors/Setters for find_ui_active_. |
507 bool find_ui_active() const { return find_ui_active_; } | 507 bool find_ui_active() const { return find_ui_active_; } |
508 void set_find_ui_active(bool find_ui_active) { | 508 void set_find_ui_active(bool find_ui_active) { |
509 find_ui_active_ = find_ui_active; | 509 find_ui_active_ = find_ui_active; |
510 } | 510 } |
511 | 511 |
512 // Setter for find_op_aborted_. | 512 // Setter for find_op_aborted_. |
513 void set_find_op_aborted(bool find_op_aborted) { | 513 void set_find_op_aborted(bool find_op_aborted) { |
514 find_op_aborted_ = find_op_aborted; | 514 find_op_aborted_ = find_op_aborted; |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 | 1195 |
1196 // Information about the language the page is in and has been translated to. | 1196 // Information about the language the page is in and has been translated to. |
1197 LanguageState language_state_; | 1197 LanguageState language_state_; |
1198 | 1198 |
1199 // --------------------------------------------------------------------------- | 1199 // --------------------------------------------------------------------------- |
1200 | 1200 |
1201 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1201 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1202 }; | 1202 }; |
1203 | 1203 |
1204 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1204 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |