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

Side by Side Diff: chrome/browser/views/status_bubble_views.cc

Issue 146093: Relanding focus manager refactoring (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/views/status_bubble_views.h" 5 #include "chrome/browser/views/status_bubble_views.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/gfx/canvas.h" 9 #include "app/gfx/canvas.h"
10 #include "app/gfx/text_elider.h" 10 #include "app/gfx/text_elider.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 popup->set_delete_on_destroy(false); 478 popup->set_delete_on_destroy(false);
479 479
480 if (!view_) 480 if (!view_)
481 view_ = new StatusView(this, popup, frame_->GetThemeProvider()); 481 view_ = new StatusView(this, popup, frame_->GetThemeProvider());
482 482
483 popup->set_window_style(WS_POPUP); 483 popup->set_window_style(WS_POPUP);
484 popup->set_window_ex_style(WS_EX_LAYERED | WS_EX_TOOLWINDOW | 484 popup->set_window_ex_style(WS_EX_LAYERED | WS_EX_TOOLWINDOW |
485 WS_EX_TRANSPARENT | 485 WS_EX_TRANSPARENT |
486 l10n_util::GetExtendedTooltipStyles()); 486 l10n_util::GetExtendedTooltipStyles());
487 popup->SetOpacity(0x00); 487 popup->SetOpacity(0x00);
488 popup->Init(frame_->GetNativeView(), gfx::Rect(), false); 488 popup->Init(frame_->GetNativeView(), gfx::Rect());
489 popup->SetContentsView(view_); 489 popup->SetContentsView(view_);
490 Reposition(); 490 Reposition();
491 popup->Show(); 491 popup->Show();
492 popup_.reset(popup); 492 popup_.reset(popup);
493 #else 493 #else
494 NOTIMPLEMENTED(); 494 NOTIMPLEMENTED();
495 #endif 495 #endif
496 } 496 }
497 } 497 }
498 498
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 } 688 }
689 } else if (offset_ != 0 || 689 } else if (offset_ != 0 ||
690 view_->GetStyle() == StatusView::STYLE_STANDARD_RIGHT) { 690 view_->GetStyle() == StatusView::STYLE_STANDARD_RIGHT) {
691 offset_ = 0; 691 offset_ = 0;
692 view_->SetStyle(StatusView::STYLE_STANDARD); 692 view_->SetStyle(StatusView::STYLE_STANDARD);
693 popup_->SetBounds(gfx::Rect(top_left.x() + position_.x(), 693 popup_->SetBounds(gfx::Rect(top_left.x() + position_.x(),
694 top_left.y() + position_.y(), 694 top_left.y() + position_.y(),
695 size_.width(), size_.height())); 695 size_.width(), size_.height()));
696 } 696 }
697 } 697 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698