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

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

Issue 8110003: Show avatar menu from NTP4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 5 #include "chrome/browser/ui/panels/panel.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/extensions/extension_prefs.h" 8 #include "chrome/browser/extensions/extension_prefs.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 NOTIMPLEMENTED(); 481 NOTIMPLEMENTED();
482 } 482 }
483 #endif 483 #endif
484 484
485 void Panel::UpdatePreferredSize(TabContents* tab_contents, 485 void Panel::UpdatePreferredSize(TabContents* tab_contents,
486 const gfx::Size& pref_size) { 486 const gfx::Size& pref_size) {
487 return manager()->OnPreferredWindowSizeChanged(this, 487 return manager()->OnPreferredWindowSizeChanged(this,
488 native_panel_->WindowSizeFromContentSize(pref_size)); 488 native_panel_->WindowSizeFromContentSize(pref_size));
489 } 489 }
490 490
491 void Panel::ShowAvatarBubble(TabContents* tab_contents, int x, int y) {
492 NOTIMPLEMENTED();
jennb 2011/10/03 17:08:07 Could you change this to a comment saying not appl
sail 2011/10/03 18:46:03 Done.
493 }
494
491 void Panel::Observe(int type, 495 void Panel::Observe(int type,
492 const NotificationSource& source, 496 const NotificationSource& source,
493 const NotificationDetails& details) { 497 const NotificationDetails& details) {
494 switch (type) { 498 switch (type) {
495 case content::NOTIFICATION_TAB_ADDED: 499 case content::NOTIFICATION_TAB_ADDED:
496 // We also need to know when the render view host changes in order 500 // We also need to know when the render view host changes in order
497 // to turn on preferred size changed notifications in the new 501 // to turn on preferred size changed notifications in the new
498 // render view host. However, we cannot register for 502 // render view host. However, we cannot register for
499 // NOTIFICATION_TAB_CONTENTS_SWAPPED until we actually have a 503 // NOTIFICATION_TAB_CONTENTS_SWAPPED until we actually have a
500 // tab content so we register for it here. 504 // tab content so we register for it here.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost()); 539 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost());
536 } 540 }
537 541
538 Browser* Panel::browser() const { 542 Browser* Panel::browser() const {
539 return native_panel_->GetPanelBrowser(); 543 return native_panel_->GetPanelBrowser();
540 } 544 }
541 545
542 void Panel::DestroyBrowser() { 546 void Panel::DestroyBrowser() {
543 native_panel_->DestroyPanelBrowser(); 547 native_panel_->DestroyPanelBrowser();
544 } 548 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698