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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 10810062: Moving common code into OmniboxView from OmniboxView* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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) 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 "chrome/browser/ui/views/frame/browser_view.h" 5 #include "chrome/browser/ui/views/frame/browser_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 1705
1706 // status_bubble_ may be NULL if this is invoked during construction. 1706 // status_bubble_ may be NULL if this is invoked during construction.
1707 if (status_bubble_.get()) 1707 if (status_bubble_.get())
1708 status_bubble_->Reposition(); 1708 status_bubble_->Reposition();
1709 1709
1710 chrome::HideBookmarkBubbleView(); 1710 chrome::HideBookmarkBubbleView();
1711 1711
1712 // Close the omnibox popup, if any. 1712 // Close the omnibox popup, if any.
1713 LocationBarView* location_bar_view = GetLocationBarView(); 1713 LocationBarView* location_bar_view = GetLocationBarView();
1714 if (location_bar_view) 1714 if (location_bar_view)
1715 location_bar_view->GetLocationEntry()->ClosePopup(); 1715 location_bar_view->GetLocationEntry()->CloseAutocompletePopup();
1716 } 1716 }
1717 1717
1718 views::Widget* BrowserView::GetWidget() { 1718 views::Widget* BrowserView::GetWidget() {
1719 return View::GetWidget(); 1719 return View::GetWidget();
1720 } 1720 }
1721 1721
1722 const views::Widget* BrowserView::GetWidget() const { 1722 const views::Widget* BrowserView::GetWidget() const {
1723 return View::GetWidget(); 1723 return View::GetWidget();
1724 } 1724 }
1725 1725
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
2602 if (contents && contents->GetContentNativeView() && 2602 if (contents && contents->GetContentNativeView() &&
2603 contents->GetContentNativeView()->HasFocus()) { 2603 contents->GetContentNativeView()->HasFocus()) {
2604 (contents->GetRenderViewHost()->*method)(); 2604 (contents->GetRenderViewHost()->*method)();
2605 return true; 2605 return true;
2606 } 2606 }
2607 #elif defined(OS_WIN) 2607 #elif defined(OS_WIN)
2608 // TODO(yusukes): Support non-Aura Windows. 2608 // TODO(yusukes): Support non-Aura Windows.
2609 #endif 2609 #endif
2610 return false; 2610 return false;
2611 } 2611 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698