OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 void BrowserView::Close() { | 685 void BrowserView::Close() { |
686 BrowserBubbleHost::Close(); | 686 BrowserBubbleHost::Close(); |
687 | 687 |
688 frame_->GetWindow()->Close(); | 688 frame_->GetWindow()->Close(); |
689 } | 689 } |
690 | 690 |
691 void BrowserView::Activate() { | 691 void BrowserView::Activate() { |
692 frame_->GetWindow()->Activate(); | 692 frame_->GetWindow()->Activate(); |
693 } | 693 } |
694 | 694 |
| 695 void BrowserView::Deactivate() { |
| 696 frame_->GetWindow()->Deactivate(); |
| 697 } |
| 698 |
695 bool BrowserView::IsActive() const { | 699 bool BrowserView::IsActive() const { |
696 return frame_->GetWindow()->IsActive(); | 700 return frame_->GetWindow()->IsActive(); |
697 } | 701 } |
698 | 702 |
699 void BrowserView::FlashFrame() { | 703 void BrowserView::FlashFrame() { |
700 #if defined(OS_WIN) | 704 #if defined(OS_WIN) |
701 FLASHWINFO fwi; | 705 FLASHWINFO fwi; |
702 fwi.cbSize = sizeof(fwi); | 706 fwi.cbSize = sizeof(fwi); |
703 fwi.hwnd = frame_->GetWindow()->GetNativeWindow(); | 707 fwi.hwnd = frame_->GetWindow()->GetNativeWindow(); |
704 fwi.dwFlags = FLASHW_ALL; | 708 fwi.dwFlags = FLASHW_ALL; |
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2246 SetAccessibleName(l10n_util::GetString(IDS_PRODUCT_NAME)); | 2250 SetAccessibleName(l10n_util::GetString(IDS_PRODUCT_NAME)); |
2247 | 2251 |
2248 return view; | 2252 return view; |
2249 } | 2253 } |
2250 #endif | 2254 #endif |
2251 | 2255 |
2252 // static | 2256 // static |
2253 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { | 2257 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { |
2254 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); | 2258 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); |
2255 } | 2259 } |
OLD | NEW |