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

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

Issue 1345343003: Remove lots of old blur plumbing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 5 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
« no previous file with comments | « chrome/browser/ui/panels/panel_host.h ('k') | chromecast/browser/android/cast_window_android.h » ('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) 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/panels/panel_host.h" 5 #include "chrome/browser/ui/panels/panel_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 navigate_params.window_bounds = initial_rect; 156 navigate_params.window_bounds = initial_rect;
157 navigate_params.user_gesture = user_gesture; 157 navigate_params.user_gesture = user_gesture;
158 navigate_params.extension_app_id = panel_->extension_id(); 158 navigate_params.extension_app_id = panel_->extension_id();
159 chrome::Navigate(&navigate_params); 159 chrome::Navigate(&navigate_params);
160 } 160 }
161 161
162 void PanelHost::ActivateContents(content::WebContents* contents) { 162 void PanelHost::ActivateContents(content::WebContents* contents) {
163 panel_->Activate(); 163 panel_->Activate();
164 } 164 }
165 165
166 void PanelHost::DeactivateContents(content::WebContents* contents) {
167 panel_->Deactivate();
168 }
169
170 void PanelHost::LoadingStateChanged(content::WebContents* source, 166 void PanelHost::LoadingStateChanged(content::WebContents* source,
171 bool to_different_document) { 167 bool to_different_document) {
172 bool is_loading = source->IsLoading() && to_different_document; 168 bool is_loading = source->IsLoading() && to_different_document;
173 panel_->LoadingStateChanged(is_loading); 169 panel_->LoadingStateChanged(is_loading);
174 } 170 }
175 171
176 void PanelHost::CloseContents(content::WebContents* source) { 172 void PanelHost::CloseContents(content::WebContents* source) {
177 panel_->Close(); 173 panel_->Close();
178 } 174 }
179 175
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 236 }
241 237
242 void PanelHost::StopLoading() { 238 void PanelHost::StopLoading() {
243 content::RecordAction(UserMetricsAction("Stop")); 239 content::RecordAction(UserMetricsAction("Stop"));
244 web_contents_->Stop(); 240 web_contents_->Stop();
245 } 241 }
246 242
247 void PanelHost::Zoom(content::PageZoom zoom) { 243 void PanelHost::Zoom(content::PageZoom zoom) {
248 ui_zoom::PageZoom::Zoom(web_contents_.get(), zoom); 244 ui_zoom::PageZoom::Zoom(web_contents_.get(), zoom);
249 } 245 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_host.h ('k') | chromecast/browser/android/cast_window_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698