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

Side by Side Diff: chrome/browser/ui/views/page_info_bubble_view.h

Issue 6622002: Do all OOLing in the views code. linux_views now builds clean with the clang plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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) 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 #ifndef CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/page_info_model.h" 9 #include "chrome/browser/page_info_model.h"
10 #include "chrome/browser/ui/views/info_bubble.h" 10 #include "chrome/browser/ui/views/info_bubble.h"
(...skipping 26 matching lines...) Expand all
37 37
38 // View methods: 38 // View methods:
39 virtual gfx::Size GetPreferredSize(); 39 virtual gfx::Size GetPreferredSize();
40 40
41 // PageInfoModel::PageInfoModelObserver methods: 41 // PageInfoModel::PageInfoModelObserver methods:
42 virtual void ModelChanged(); 42 virtual void ModelChanged();
43 43
44 // InfoBubbleDelegate methods: 44 // InfoBubbleDelegate methods:
45 virtual void InfoBubbleClosing(InfoBubble* info_bubble, 45 virtual void InfoBubbleClosing(InfoBubble* info_bubble,
46 bool closed_by_escape) {} 46 bool closed_by_escape) {}
47 virtual bool CloseOnEscape() { return true; } 47 virtual bool CloseOnEscape();
48 virtual bool FadeInOnShow() { return false; } 48 virtual bool FadeInOnShow();
49 virtual std::wstring accessible_name() { return L"PageInfoBubble"; } 49 virtual std::wstring accessible_name();
50 50
51 // LinkController methods: 51 // LinkController methods:
52 virtual void LinkActivated(views::Link* source, int event_flags); 52 virtual void LinkActivated(views::Link* source, int event_flags);
53 53
54 // Overridden from ui::AnimationDelegate. 54 // Overridden from ui::AnimationDelegate.
55 virtual void AnimationEnded(const ui::Animation* animation); 55 virtual void AnimationEnded(const ui::Animation* animation);
56 virtual void AnimationProgressed(const ui::Animation* animation); 56 virtual void AnimationProgressed(const ui::Animation* animation);
57 57
58 private: 58 private:
59 // Layout the sections within the bubble. 59 // Layout the sections within the bubble.
(...skipping 16 matching lines...) Expand all
76 // Animation that helps us change size smoothly as more data comes in. 76 // Animation that helps us change size smoothly as more data comes in.
77 ui::SlideAnimation resize_animation_; 77 ui::SlideAnimation resize_animation_;
78 78
79 // The height of the info bubble at the start of the resize animation. 79 // The height of the info bubble at the start of the resize animation.
80 int animation_start_height_; 80 int animation_start_height_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); 82 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView);
83 }; 83 };
84 84
85 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_ 85 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698