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

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

Issue 484603006: Add LOCAL_ prefix to non-UMA histogram macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 6 years, 3 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_model.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698