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

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

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 7 years, 2 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 } 693 }
694 694
695 void BrowserView::FlashFrame(bool flash) { 695 void BrowserView::FlashFrame(bool flash) {
696 frame_->FlashFrame(flash); 696 frame_->FlashFrame(flash);
697 } 697 }
698 698
699 bool BrowserView::IsAlwaysOnTop() const { 699 bool BrowserView::IsAlwaysOnTop() const {
700 return false; 700 return false;
701 } 701 }
702 702
703 void BrowserView::SetAlwaysOnTop(bool always_on_top) {
704 // Not implemented for browser windows.
705 NOTIMPLEMENTED();
706 }
707
703 gfx::NativeWindow BrowserView::GetNativeWindow() { 708 gfx::NativeWindow BrowserView::GetNativeWindow() {
704 // While the browser destruction is going on, the widget can already be gone, 709 // While the browser destruction is going on, the widget can already be gone,
705 // but utility functions like FindBrowserWithWindow will come here and crash. 710 // but utility functions like FindBrowserWithWindow will come here and crash.
706 // We short circuit therefore. 711 // We short circuit therefore.
707 if (!GetWidget()) 712 if (!GetWidget())
708 return NULL; 713 return NULL;
709 return GetWidget()->GetTopLevelWidget()->GetNativeWindow(); 714 return GetWidget()->GetTopLevelWidget()->GetNativeWindow();
710 } 715 }
711 716
712 BrowserWindowTesting* BrowserView::GetBrowserWindowTesting() { 717 BrowserWindowTesting* BrowserView::GetBrowserWindowTesting() {
(...skipping 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after
2678 // The +1 in the next line creates a 1-px gap between icon and arrow tip. 2683 // The +1 in the next line creates a 1-px gap between icon and arrow tip.
2679 gfx::Point icon_bottom(0, location_icon_view->GetImageBounds().bottom() - 2684 gfx::Point icon_bottom(0, location_icon_view->GetImageBounds().bottom() -
2680 LocationBarView::kIconInternalPadding + 1); 2685 LocationBarView::kIconInternalPadding + 1);
2681 ConvertPointToTarget(location_icon_view, this, &icon_bottom); 2686 ConvertPointToTarget(location_icon_view, this, &icon_bottom);
2682 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL)); 2687 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL));
2683 ConvertPointToTarget(infobar_container_, this, &infobar_top); 2688 ConvertPointToTarget(infobar_container_, this, &infobar_top);
2684 top_arrow_height = infobar_top.y() - icon_bottom.y(); 2689 top_arrow_height = infobar_top.y() - icon_bottom.y();
2685 } 2690 }
2686 return top_arrow_height; 2691 return top_arrow_height;
2687 } 2692 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/common/extensions/api/_api_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698