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

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

Issue 3060045: Making window.focus() work in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/views/frame/browser_view.h ('k') | chrome/renderer/render_widget.cc » ('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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_view.h ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698