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

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

Issue 11360144: Converts some of the omnibox related classes to support multiple (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_initialized Created 8 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/keyword_hint_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1866 if (child != infobar_container_) 1866 if (child != infobar_container_)
1867 child->Paint(canvas); 1867 child->Paint(canvas);
1868 } 1868 }
1869 1869
1870 infobar_container_->Paint(canvas); 1870 infobar_container_->Paint(canvas);
1871 } 1871 }
1872 1872
1873 void BrowserView::ViewHierarchyChanged(bool is_add, 1873 void BrowserView::ViewHierarchyChanged(bool is_add,
1874 views::View* parent, 1874 views::View* parent,
1875 views::View* child) { 1875 views::View* child) {
1876 if (is_add && child == this && GetWidget() && !initialized_) { 1876 if (!initialized_ && is_add && child == this && GetWidget()) {
1877 Init(); 1877 Init();
1878 initialized_ = true; 1878 initialized_ = true;
1879 } 1879 }
1880 } 1880 }
1881 1881
1882 void BrowserView::ChildPreferredSizeChanged(View* child) { 1882 void BrowserView::ChildPreferredSizeChanged(View* child) {
1883 Layout(); 1883 Layout();
1884 } 1884 }
1885 1885
1886 void BrowserView::GetAccessibleState(ui::AccessibleViewState* state) { 1886 void BrowserView::GetAccessibleState(ui::AccessibleViewState* state) {
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
2597 modal_browser->window()->Activate(); 2597 modal_browser->window()->Activate();
2598 } 2598 }
2599 2599
2600 AppModalDialogQueue::GetInstance()->ActivateModalDialog(); 2600 AppModalDialogQueue::GetInstance()->ActivateModalDialog();
2601 } 2601 }
2602 2602
2603 void BrowserView::MaybeStackBookmarkBarAtTop() { 2603 void BrowserView::MaybeStackBookmarkBarAtTop() {
2604 if (bookmark_bar_view_.get()) 2604 if (bookmark_bar_view_.get())
2605 bookmark_bar_view_->MaybeStackAtTop(); 2605 bookmark_bar_view_->MaybeStackAtTop();
2606 } 2606 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/keyword_hint_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698