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

Side by Side Diff: chrome/browser/notifications/balloon_host.cc

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/notifications/balloon_host.h" 5 #include "chrome/browser/notifications/balloon_host.h"
6 6
7 #include "chrome/browser/browser_list.h" 7 #include "chrome/browser/browser_list.h"
8 #include "chrome/browser/extensions/extension_process_manager.h" 8 #include "chrome/browser/extensions/extension_process_manager.h"
9 #include "chrome/browser/notifications/balloon.h" 9 #include "chrome/browser/notifications/balloon.h"
10 #include "chrome/browser/notifications/notification.h" 10 #include "chrome/browser/notifications/notification.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 TabContents* contents = delegate_view_helper_.GetCreatedWindow(route_id); 183 TabContents* contents = delegate_view_helper_.GetCreatedWindow(route_id);
184 if (!contents) 184 if (!contents)
185 return; 185 return;
186 Browser* browser = BrowserList::GetLastActiveWithProfile(balloon_->profile()); 186 Browser* browser = BrowserList::GetLastActiveWithProfile(balloon_->profile());
187 if (!browser) 187 if (!browser)
188 return; 188 return;
189 189
190 browser->AddTabContents(contents, disposition, initial_pos, user_gesture); 190 browser->AddTabContents(contents, disposition, initial_pos, user_gesture);
191 } 191 }
192 192
193 bool BalloonHost::PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
194 bool* is_keyboard_shortcut) {
195 return false;
196 }
197
193 void BalloonHost::UpdatePreferredSize(const gfx::Size& new_size) { 198 void BalloonHost::UpdatePreferredSize(const gfx::Size& new_size) {
194 balloon_->SetContentPreferredSize(new_size); 199 balloon_->SetContentPreferredSize(new_size);
195 } 200 }
196 201
197 void BalloonHost::HandleMouseDown() { 202 void BalloonHost::HandleMouseDown() {
198 balloon_->OnClick(); 203 balloon_->OnClick();
199 } 204 }
200 205
201 RendererPreferences BalloonHost::GetRendererPrefs(Profile* profile) const { 206 RendererPreferences BalloonHost::GetRendererPrefs(Profile* profile) const {
202 RendererPreferences preferences; 207 RendererPreferences preferences;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 268
264 void BalloonHost::NotifyDisconnect() { 269 void BalloonHost::NotifyDisconnect() {
265 if (!should_notify_on_disconnect_) 270 if (!should_notify_on_disconnect_)
266 return; 271 return;
267 272
268 should_notify_on_disconnect_ = false; 273 should_notify_on_disconnect_ = false;
269 NotificationService::current()->Notify( 274 NotificationService::current()->Notify(
270 NotificationType::NOTIFY_BALLOON_DISCONNECTED, 275 NotificationType::NOTIFY_BALLOON_DISCONNECTED,
271 Source<BalloonHost>(this), NotificationService::NoDetails()); 276 Source<BalloonHost>(this), NotificationService::NoDetails());
272 } 277 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/balloon_host.h ('k') | chrome/browser/plugin_exceptions_table_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698