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

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

Issue 10800054: Add pin icon to the omnibar in windows 8 metro mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/panels/panel_browser_window.h" 5 #include "chrome/browser/ui/panels/panel_browser_window.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_commands.h" 9 #include "chrome/browser/ui/browser_commands.h"
10 #include "chrome/browser/ui/browser_finder.h" 10 #include "chrome/browser/ui/browser_finder.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 void PanelBrowserWindow::UpdateLoadingAnimations(bool should_animate) { 152 void PanelBrowserWindow::UpdateLoadingAnimations(bool should_animate) {
153 native_panel_->UpdatePanelLoadingAnimations(should_animate); 153 native_panel_->UpdatePanelLoadingAnimations(should_animate);
154 } 154 }
155 155
156 void PanelBrowserWindow::SetStarredState(bool is_starred) { 156 void PanelBrowserWindow::SetStarredState(bool is_starred) {
157 // Since panels are typically not bookmarked extension UI windows, they don't 157 // Since panels are typically not bookmarked extension UI windows, they don't
158 // have starred state. 158 // have starred state.
159 } 159 }
160 160
161 #if defined(OS_WIN)
162 void PanelBrowserWindow::SetMetroPinnedState(bool is_pinned) {
163 // Since panels don't have an Omnibox, they don't have a pinned icon.
164 }
165 #endif
166
161 void PanelBrowserWindow::SetZoomIconState(ZoomController::ZoomIconState state) { 167 void PanelBrowserWindow::SetZoomIconState(ZoomController::ZoomIconState state) {
162 // Since panels don't have an Omnibox, they don't have a zoom icon. 168 // Since panels don't have an Omnibox, they don't have a zoom icon.
163 } 169 }
164 170
165 void PanelBrowserWindow::SetZoomIconTooltipPercent(int zoom_percent) { 171 void PanelBrowserWindow::SetZoomIconTooltipPercent(int zoom_percent) {
166 // Since panels don't have an Omnibox, they don't have a zoom icon. 172 // Since panels don't have an Omnibox, they don't have a zoom icon.
167 } 173 }
168 174
169 void PanelBrowserWindow::ShowZoomBubble(int zoom_percent) { 175 void PanelBrowserWindow::ShowZoomBubble(int zoom_percent) {
170 // Since panels don't have an Omnibox, they don't have a zoom icon, so no 176 // Since panels don't have an Omnibox, they don't have a zoom icon, so no
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 } 490 }
485 491
486 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, 492 void PanelBrowserWindow::TabInsertedAt(TabContents* contents,
487 int index, 493 int index,
488 bool foreground) { 494 bool foreground) {
489 if (panel_->auto_resizable()) { 495 if (panel_->auto_resizable()) {
490 DCHECK_EQ(0, index); 496 DCHECK_EQ(0, index);
491 panel_->EnableWebContentsAutoResize(contents->web_contents()); 497 panel_->EnableWebContentsAutoResize(contents->web_contents());
492 } 498 }
493 } 499 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698