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

Side by Side Diff: chrome/browser/ui/views/autofill/info_bubble.cc

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/views/autofill/info_bubble.h" 5 #include "chrome/browser/ui/views/autofill/info_bubble.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "ui/gfx/point.h" 8 #include "ui/gfx/point.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
(...skipping 18 matching lines...) Expand all
29 const int kInfoBubbleVerticalMargin = 12; 29 const int kInfoBubbleVerticalMargin = 12;
30 30
31 } // namespace 31 } // namespace
32 32
33 class InfoBubbleFrame : public views::BubbleFrameView { 33 class InfoBubbleFrame : public views::BubbleFrameView {
34 public: 34 public:
35 explicit InfoBubbleFrame(const gfx::Insets& content_margins) 35 explicit InfoBubbleFrame(const gfx::Insets& content_margins)
36 : views::BubbleFrameView(content_margins) {} 36 : views::BubbleFrameView(content_margins) {}
37 virtual ~InfoBubbleFrame() {} 37 virtual ~InfoBubbleFrame() {}
38 38
39 virtual gfx::Rect GetAvailableScreenBounds(const gfx::Rect& rect) OVERRIDE { 39 virtual gfx::Rect GetAvailableScreenBounds(const gfx::Rect& rect) override {
40 return available_bounds_; 40 return available_bounds_;
41 } 41 }
42 42
43 void set_available_bounds(const gfx::Rect& available_bounds) { 43 void set_available_bounds(const gfx::Rect& available_bounds) {
44 available_bounds_ = available_bounds; 44 available_bounds_ = available_bounds;
45 } 45 }
46 46
47 private: 47 private:
48 // Bounds that this frame should try to keep bubbles within (screen coords). 48 // Bounds that this frame should try to keep bubbles within (screen coords).
49 gfx::Rect available_bounds_; 49 gfx::Rect available_bounds_;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 void InfoBubble::OnWidgetBoundsChanged(views::Widget* widget, 142 void InfoBubble::OnWidgetBoundsChanged(views::Widget* widget,
143 const gfx::Rect& new_bounds) { 143 const gfx::Rect& new_bounds) {
144 views::BubbleDelegateView::OnWidgetBoundsChanged(widget, new_bounds); 144 views::BubbleDelegateView::OnWidgetBoundsChanged(widget, new_bounds);
145 if (anchor_widget() == widget) 145 if (anchor_widget() == widget)
146 frame_->set_available_bounds(widget->GetWindowBoundsInScreen()); 146 frame_->set_available_bounds(widget->GetWindowBoundsInScreen());
147 } 147 }
148 148
149 } // namespace autofill 149 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/info_bubble.h ('k') | chrome/browser/ui/views/autofill/new_credit_card_bubble_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698