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

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review, take 2 Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after
2063 2063
2064 void Browser::FindPrevious() { 2064 void Browser::FindPrevious() {
2065 content::RecordAction(UserMetricsAction("FindPrevious")); 2065 content::RecordAction(UserMetricsAction("FindPrevious"));
2066 FindInPage(true, false); 2066 FindInPage(true, false);
2067 } 2067 }
2068 2068
2069 void Browser::Zoom(content::PageZoom zoom) { 2069 void Browser::Zoom(content::PageZoom zoom) {
2070 if (is_devtools()) 2070 if (is_devtools())
2071 return; 2071 return;
2072 2072
2073 RenderViewHost* host = GetSelectedWebContents()->GetRenderViewHost(); 2073 content::RenderViewHost* host = GetSelectedWebContents()->GetRenderViewHost();
2074 if (zoom == content::PAGE_ZOOM_RESET) { 2074 if (zoom == content::PAGE_ZOOM_RESET) {
2075 host->SetZoomLevel(0); 2075 host->SetZoomLevel(0);
2076 content::RecordAction(UserMetricsAction("ZoomNormal")); 2076 content::RecordAction(UserMetricsAction("ZoomNormal"));
2077 return; 2077 return;
2078 } 2078 }
2079 2079
2080 double current_zoom_level = GetSelectedWebContents()->GetZoomLevel(); 2080 double current_zoom_level = GetSelectedWebContents()->GetZoomLevel();
2081 double default_zoom_level = 2081 double default_zoom_level =
2082 profile_->GetPrefs()->GetDouble(prefs::kDefaultZoomLevel); 2082 profile_->GetPrefs()->GetDouble(prefs::kDefaultZoomLevel);
2083 2083
(...skipping 3544 matching lines...) Expand 10 before | Expand all | Expand 10 after
5628 ShowSingletonTabOverwritingNTP(params); 5628 ShowSingletonTabOverwritingNTP(params);
5629 } else { 5629 } else {
5630 LoginUIServiceFactory::GetForProfile( 5630 LoginUIServiceFactory::GetForProfile(
5631 profile()->GetOriginalProfile())->ShowLoginUI(); 5631 profile()->GetOriginalProfile())->ShowLoginUI();
5632 } 5632 }
5633 } 5633 }
5634 5634
5635 void Browser::ToggleSpeechInput() { 5635 void Browser::ToggleSpeechInput() {
5636 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput(); 5636 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput();
5637 } 5637 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698