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

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

Issue 8356028: Add shortcut to show avatar menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build error 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
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browser_frame_view.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) 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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 const gfx::Size& pref_size) { 520 const gfx::Size& pref_size) {
521 return manager()->OnPreferredWindowSizeChanged(this, 521 return manager()->OnPreferredWindowSizeChanged(this,
522 native_panel_->WindowSizeFromContentSize(pref_size)); 522 native_panel_->WindowSizeFromContentSize(pref_size));
523 } 523 }
524 524
525 void Panel::ShowAvatarBubble(TabContents* tab_contents, const gfx::Rect& rect) { 525 void Panel::ShowAvatarBubble(TabContents* tab_contents, const gfx::Rect& rect) {
526 // Panels will never show a new tab page so this should never be called. 526 // Panels will never show a new tab page so this should never be called.
527 NOTREACHED(); 527 NOTREACHED();
528 } 528 }
529 529
530 void Panel::ShowAvatarBubbleFromAvatarButton() {
531 // Panels will never show an avatar button so this should never be called.
532 NOTREACHED();
533 }
534
530 void Panel::Observe(int type, 535 void Panel::Observe(int type,
531 const content::NotificationSource& source, 536 const content::NotificationSource& source,
532 const content::NotificationDetails& details) { 537 const content::NotificationDetails& details) {
533 switch (type) { 538 switch (type) {
534 case content::NOTIFICATION_TAB_ADDED: 539 case content::NOTIFICATION_TAB_ADDED:
535 // We also need to know when the render view host changes in order 540 // We also need to know when the render view host changes in order
536 // to turn on preferred size changed notifications in the new 541 // to turn on preferred size changed notifications in the new
537 // render view host. However, we cannot register for 542 // render view host. However, we cannot register for
538 // NOTIFICATION_TAB_CONTENTS_SWAPPED until we actually have a 543 // NOTIFICATION_TAB_CONTENTS_SWAPPED until we actually have a
539 // tab content so we register for it here. 544 // tab content so we register for it here.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost()); 580 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost());
576 } 581 }
577 582
578 Browser* Panel::browser() const { 583 Browser* Panel::browser() const {
579 return native_panel_->GetPanelBrowser(); 584 return native_panel_->GetPanelBrowser();
580 } 585 }
581 586
582 void Panel::DestroyBrowser() { 587 void Panel::DestroyBrowser() {
583 native_panel_->DestroyPanelBrowser(); 588 native_panel_->DestroyPanelBrowser();
584 } 589 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698