| OLD | NEW |
| 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 bool BrowserView::IsFullscreen() const { | 911 bool BrowserView::IsFullscreen() const { |
| 912 return frame_->IsFullscreen(); | 912 return frame_->IsFullscreen(); |
| 913 } | 913 } |
| 914 | 914 |
| 915 bool BrowserView::IsFullscreenBubbleVisible() const { | 915 bool BrowserView::IsFullscreenBubbleVisible() const { |
| 916 return fullscreen_bubble_ != NULL; | 916 return fullscreen_bubble_ != NULL; |
| 917 } | 917 } |
| 918 | 918 |
| 919 #if defined(OS_WIN) | 919 #if defined(OS_WIN) |
| 920 void BrowserView::SetMetroSnapMode(bool enable) { | 920 void BrowserView::SetMetroSnapMode(bool enable) { |
| 921 HISTOGRAM_COUNTS("Metro.SnapModeToggle", enable); | 921 LOCAL_HISTOGRAM_COUNTS("Metro.SnapModeToggle", enable); |
| 922 ProcessFullscreen(enable, METRO_SNAP_FULLSCREEN, GURL(), FEB_TYPE_NONE); | 922 ProcessFullscreen(enable, METRO_SNAP_FULLSCREEN, GURL(), FEB_TYPE_NONE); |
| 923 } | 923 } |
| 924 | 924 |
| 925 bool BrowserView::IsInMetroSnapMode() const { | 925 bool BrowserView::IsInMetroSnapMode() const { |
| 926 return false; | 926 return false; |
| 927 } | 927 } |
| 928 #endif // defined(OS_WIN) | 928 #endif // defined(OS_WIN) |
| 929 | 929 |
| 930 void BrowserView::RestoreFocus() { | 930 void BrowserView::RestoreFocus() { |
| 931 WebContents* selected_web_contents = GetActiveWebContents(); | 931 WebContents* selected_web_contents = GetActiveWebContents(); |
| (...skipping 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2557 !GetLocationBar()->GetOmniboxView()->model()->popup_model()->IsOpen()) { | 2557 !GetLocationBar()->GetOmniboxView()->model()->popup_model()->IsOpen()) { |
| 2558 gfx::Point icon_bottom( | 2558 gfx::Point icon_bottom( |
| 2559 toolbar_->location_bar()->GetLocationBarAnchorPoint()); | 2559 toolbar_->location_bar()->GetLocationBarAnchorPoint()); |
| 2560 ConvertPointToTarget(toolbar_->location_bar(), this, &icon_bottom); | 2560 ConvertPointToTarget(toolbar_->location_bar(), this, &icon_bottom); |
| 2561 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL)); | 2561 gfx::Point infobar_top(0, infobar_container_->GetVerticalOverlap(NULL)); |
| 2562 ConvertPointToTarget(infobar_container_, this, &infobar_top); | 2562 ConvertPointToTarget(infobar_container_, this, &infobar_top); |
| 2563 top_arrow_height = infobar_top.y() - icon_bottom.y(); | 2563 top_arrow_height = infobar_top.y() - icon_bottom.y(); |
| 2564 } | 2564 } |
| 2565 return top_arrow_height; | 2565 return top_arrow_height; |
| 2566 } | 2566 } |
| OLD | NEW |