| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/views/frame/browser_view.h" | 5 #include "chrome/browser/views/frame/browser_view.h" |
| 6 | 6 |
| 7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 contents_split_->set_divider_offset(split_offset); | 595 contents_split_->set_divider_offset(split_offset); |
| 596 | 596 |
| 597 frame_->GetWindow()->Show(); | 597 frame_->GetWindow()->Show(); |
| 598 } | 598 } |
| 599 | 599 |
| 600 void BrowserView::SetBounds(const gfx::Rect& bounds) { | 600 void BrowserView::SetBounds(const gfx::Rect& bounds) { |
| 601 GetWidget()->SetBounds(bounds); | 601 GetWidget()->SetBounds(bounds); |
| 602 } | 602 } |
| 603 | 603 |
| 604 void BrowserView::Close() { | 604 void BrowserView::Close() { |
| 605 BubbleSet::iterator bubble = browser_bubbles_.begin(); |
| 606 for (; bubble != browser_bubbles_.end(); ++bubble) |
| 607 (*bubble)->BrowserWindowClosing(); |
| 608 |
| 605 frame_->GetWindow()->Close(); | 609 frame_->GetWindow()->Close(); |
| 606 | |
| 607 BubbleSet::iterator bubble = browser_bubbles_.begin(); | |
| 608 for (; bubble != browser_bubbles_.end(); ++bubble) { | |
| 609 (*bubble)->BrowserWindowClosed(); | |
| 610 } | |
| 611 } | 610 } |
| 612 | 611 |
| 613 void BrowserView::Activate() { | 612 void BrowserView::Activate() { |
| 614 frame_->GetWindow()->Activate(); | 613 frame_->GetWindow()->Activate(); |
| 615 } | 614 } |
| 616 | 615 |
| 617 bool BrowserView::IsActive() const { | 616 bool BrowserView::IsActive() const { |
| 618 return frame_->GetWindow()->IsActive(); | 617 return frame_->GetWindow()->IsActive(); |
| 619 } | 618 } |
| 620 | 619 |
| (...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1923 | 1922 |
| 1924 // static | 1923 // static |
| 1925 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 1924 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
| 1926 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); | 1925 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); |
| 1927 } | 1926 } |
| 1928 | 1927 |
| 1929 // static | 1928 // static |
| 1930 void BrowserList::AllBrowsersClosed() { | 1929 void BrowserList::AllBrowsersClosed() { |
| 1931 views::Window::CloseAllSecondaryWindows(); | 1930 views::Window::CloseAllSecondaryWindows(); |
| 1932 } | 1931 } |
| OLD | NEW |