| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/tab_contents/interstitial_page.h" | 5 #include "content/browser/tab_contents/interstitial_page.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 } | 546 } |
| 547 | 547 |
| 548 void InterstitialPage::FocusThroughTabTraversal(bool reverse) { | 548 void InterstitialPage::FocusThroughTabTraversal(bool reverse) { |
| 549 render_view_host_->SetInitialFocus(reverse); | 549 render_view_host_->SetInitialFocus(reverse); |
| 550 } | 550 } |
| 551 | 551 |
| 552 content::ViewType InterstitialPage::GetRenderViewType() const { | 552 content::ViewType InterstitialPage::GetRenderViewType() const { |
| 553 return content::VIEW_TYPE_INTERSTITIAL_PAGE; | 553 return content::VIEW_TYPE_INTERSTITIAL_PAGE; |
| 554 } | 554 } |
| 555 | 555 |
| 556 gfx::Rect InterstitialPage::GetRootWindowResizerRect() const { |
| 557 return gfx::Rect(); |
| 558 } |
| 559 |
| 556 void InterstitialPage::Disable() { | 560 void InterstitialPage::Disable() { |
| 557 enabled_ = false; | 561 enabled_ = false; |
| 558 } | 562 } |
| 559 | 563 |
| 560 void InterstitialPage::TakeActionOnResourceDispatcher( | 564 void InterstitialPage::TakeActionOnResourceDispatcher( |
| 561 ResourceRequestAction action) { | 565 ResourceRequestAction action) { |
| 562 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)) << | 566 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)) << |
| 563 "TakeActionOnResourceDispatcher should be called on the main thread."; | 567 "TakeActionOnResourceDispatcher should be called on the main thread."; |
| 564 | 568 |
| 565 if (action == CANCEL || action == RESUME) { | 569 if (action == CANCEL || action == RESUME) { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 if (!tab->GetViewDelegate()) | 690 if (!tab->GetViewDelegate()) |
| 687 return; | 691 return; |
| 688 | 692 |
| 689 tab->GetViewDelegate()->TakeFocus(reverse); | 693 tab->GetViewDelegate()->TakeFocus(reverse); |
| 690 } | 694 } |
| 691 | 695 |
| 692 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( | 696 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( |
| 693 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 697 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
| 694 int active_match_ordinal, bool final_update) { | 698 int active_match_ordinal, bool final_update) { |
| 695 } | 699 } |
| OLD | NEW |