Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 122002: Moving the WM_SETFOCUS message processing out of FocusManager (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 16 matching lines...) Expand all
27 #include "chrome/browser/hung_renderer_dialog.h" 27 #include "chrome/browser/hung_renderer_dialog.h"
28 #include "chrome/browser/jsmessage_box_handler.h" 28 #include "chrome/browser/jsmessage_box_handler.h"
29 #include "chrome/browser/load_from_memory_cache_details.h" 29 #include "chrome/browser/load_from_memory_cache_details.h"
30 #include "chrome/browser/load_notification_details.h" 30 #include "chrome/browser/load_notification_details.h"
31 #include "chrome/browser/password_manager/password_manager.h" 31 #include "chrome/browser/password_manager/password_manager.h"
32 #include "chrome/browser/plugin_installer.h" 32 #include "chrome/browser/plugin_installer.h"
33 #include "chrome/browser/profile.h" 33 #include "chrome/browser/profile.h"
34 #include "chrome/browser/renderer_host/render_widget_host_view.h" 34 #include "chrome/browser/renderer_host/render_widget_host_view.h"
35 #include "chrome/browser/renderer_host/web_cache_manager.h" 35 #include "chrome/browser/renderer_host/web_cache_manager.h"
36 #include "chrome/browser/tab_contents/infobar_delegate.h" 36 #include "chrome/browser/tab_contents/infobar_delegate.h"
37 #include "chrome/browser/tab_contents/interstitial_page.h"
37 #include "chrome/browser/tab_contents/navigation_entry.h" 38 #include "chrome/browser/tab_contents/navigation_entry.h"
38 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 39 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
39 #include "chrome/browser/tab_contents/tab_contents_view.h" 40 #include "chrome/browser/tab_contents/tab_contents_view.h"
40 #include "chrome/browser/thumbnail_store.h" 41 #include "chrome/browser/thumbnail_store.h"
41 #include "chrome/browser/search_engines/template_url_fetcher.h" 42 #include "chrome/browser/search_engines/template_url_fetcher.h"
42 #include "chrome/browser/search_engines/template_url_model.h" 43 #include "chrome/browser/search_engines/template_url_model.h"
43 #include "chrome/common/chrome_switches.h" 44 #include "chrome/common/chrome_switches.h"
44 #include "chrome/common/notification_service.h" 45 #include "chrome/common/notification_service.h"
45 #include "chrome/common/page_action.h" 46 #include "chrome/common/page_action.h"
46 #include "chrome/common/pref_names.h" 47 #include "chrome/common/pref_names.h"
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 816
816 void TabContents::GetContainerBounds(gfx::Rect *out) const { 817 void TabContents::GetContainerBounds(gfx::Rect *out) const {
817 view_->GetContainerBounds(out); 818 view_->GetContainerBounds(out);
818 } 819 }
819 820
820 void TabContents::Focus() { 821 void TabContents::Focus() {
821 view_->Focus(); 822 view_->Focus();
822 } 823 }
823 824
824 void TabContents::FocusThroughTabTraversal(bool reverse) { 825 void TabContents::FocusThroughTabTraversal(bool reverse) {
826 if (showing_interstitial_page()) {
827 render_manager_.interstitial_page()->FocusThroughTabTraversal(reverse);
828 return;
829 }
825 render_view_host()->SetInitialFocus(reverse); 830 render_view_host()->SetInitialFocus(reverse);
826 } 831 }
827 832
828 bool TabContents::FocusLocationBarByDefault() { 833 bool TabContents::FocusLocationBarByDefault() {
829 DOMUI* dom_ui = GetDOMUIForCurrentState(); 834 DOMUI* dom_ui = GetDOMUIForCurrentState();
830 if (dom_ui) 835 if (dom_ui)
831 return dom_ui->focus_location_bar_by_default(); 836 return dom_ui->focus_location_bar_by_default();
832 return false; 837 return false;
833 } 838 }
834 839
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2340 NavigationController::LoadCommittedDetails& committed_details = 2345 NavigationController::LoadCommittedDetails& committed_details =
2341 *(Details<NavigationController::LoadCommittedDetails>(details).ptr()); 2346 *(Details<NavigationController::LoadCommittedDetails>(details).ptr());
2342 ExpireInfoBars(committed_details); 2347 ExpireInfoBars(committed_details);
2343 break; 2348 break;
2344 } 2349 }
2345 2350
2346 default: 2351 default:
2347 NOTREACHED(); 2352 NOTREACHED();
2348 } 2353 }
2349 } 2354 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/interstitial_page.cc ('k') | chrome/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698