| 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 "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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |