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 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 5 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "chrome/browser/autocomplete_history_manager.h" | 9 #include "chrome/browser/autocomplete_history_manager.h" |
10 #include "chrome/browser/autofill/autofill_manager.h" | 10 #include "chrome/browser/autofill/autofill_manager.h" |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 if (infobars_.empty()) { | 682 if (infobars_.empty()) { |
683 registrar_.Remove(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED, | 683 registrar_.Remove(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED, |
684 Source<NavigationController>(&tab_contents_->controller())); | 684 Source<NavigationController>(&tab_contents_->controller())); |
685 } | 685 } |
686 } | 686 } |
687 | 687 |
688 void TabContentsWrapper::RemoveAllInfoBars(bool animate) { | 688 void TabContentsWrapper::RemoveAllInfoBars(bool animate) { |
689 while (!infobars_.empty()) | 689 while (!infobars_.empty()) |
690 RemoveInfoBarInternal(GetInfoBarDelegateAt(infobar_count() - 1), animate); | 690 RemoveInfoBarInternal(GetInfoBarDelegateAt(infobar_count() - 1), animate); |
691 } | 691 } |
| 692 |
| 693 void TabContentsWrapper::ExitFullscreenMode() { |
| 694 RenderViewHost* host = render_view_host(); |
| 695 host->Send(new ViewMsg_ExitFullscreen(host->routing_id())); |
| 696 } |
OLD | NEW |