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

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

Issue 10534079: Add support for managing active state of platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed redundant GetNativeWindow() decl in BrowserWindow Created 8 years, 6 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.h" 5 #include "chrome/browser/ui/panels/panel.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // panel strip because it needs to check internal state of the panel to 297 // panel strip because it needs to check internal state of the panel to
298 // determine if the panel has been drawing attention. 298 // determine if the panel has been drawing attention.
299 native_panel_->DrawAttention(draw_attention); 299 native_panel_->DrawAttention(draw_attention);
300 panel_strip_->OnPanelAttentionStateChanged(this); 300 panel_strip_->OnPanelAttentionStateChanged(this);
301 } 301 }
302 302
303 bool Panel::IsAlwaysOnTop() const { 303 bool Panel::IsAlwaysOnTop() const {
304 return always_on_top_; 304 return always_on_top_;
305 } 305 }
306 306
307 gfx::NativeWindow Panel::GetNativeWindow() {
308 return native_panel_->GetNativePanelHandle();
309 }
310
307 gfx::Rect Panel::GetRestoredBounds() const { 311 gfx::Rect Panel::GetRestoredBounds() const {
308 gfx::Rect bounds = native_panel_->GetPanelBounds(); 312 gfx::Rect bounds = native_panel_->GetPanelBounds();
309 bounds.set_y(bounds.bottom() - full_size_.height()); 313 bounds.set_y(bounds.bottom() - full_size_.height());
310 bounds.set_x(bounds.right() - full_size_.width()); 314 bounds.set_x(bounds.right() - full_size_.width());
311 bounds.set_size(full_size_); 315 bounds.set_size(full_size_);
312 return bounds; 316 return bounds;
313 } 317 }
314 318
315 gfx::Rect Panel::GetBounds() const { 319 gfx::Rect Panel::GetBounds() const {
316 return native_panel_->GetPanelBounds(); 320 return native_panel_->GetPanelBounds();
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 while ((match_index = title->find(L'\n', current_index)) != string16::npos) { 510 while ((match_index = title->find(L'\n', current_index)) != string16::npos) {
507 title->replace(match_index, 1, string16()); 511 title->replace(match_index, 1, string16());
508 current_index = match_index; 512 current_index = match_index;
509 } 513 }
510 } 514 }
511 515
512 SkBitmap Panel::GetCurrentPageIcon() const { 516 SkBitmap Panel::GetCurrentPageIcon() const {
513 // TODO(jennb): implement. 517 // TODO(jennb): implement.
514 return SkBitmap(); 518 return SkBitmap();
515 } 519 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698