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

Side by Side Diff: chrome/browser/ui/views/extensions/bookmark_app_bubble_view.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "chrome/browser/extensions/app_icon_loader.h" 10 #include "chrome/browser/extensions/app_icon_loader.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Overriden from views::BubbleDelegateView: 54 // Overriden from views::BubbleDelegateView:
55 virtual void Init() OVERRIDE; 55 virtual void Init() OVERRIDE;
56 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 56 virtual views::View* GetInitiallyFocusedView() OVERRIDE;
57 57
58 // Overridden from views::WidgetDelegate: 58 // Overridden from views::WidgetDelegate:
59 virtual void WindowClosing() OVERRIDE; 59 virtual void WindowClosing() OVERRIDE;
60 60
61 // Overridden from views::View: 61 // Overridden from views::View:
62 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; 62 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
63 virtual gfx::Size GetMinimumSize() OVERRIDE; 63 virtual gfx::Size GetMinimumSize() const OVERRIDE;
64 64
65 // Overridden from views::ButtonListener: 65 // Overridden from views::ButtonListener:
66 // Closes the bubble or opens the edit dialog. 66 // Closes the bubble or opens the edit dialog.
67 virtual void ButtonPressed(views::Button* sender, 67 virtual void ButtonPressed(views::Button* sender,
68 const ui::Event& event) OVERRIDE; 68 const ui::Event& event) OVERRIDE;
69 69
70 // Overridden from extensions::AppIconLoader::Delegate: 70 // Overridden from extensions::AppIconLoader::Delegate:
71 virtual void SetAppImage(const std::string& id, 71 virtual void SetAppImage(const std::string& id,
72 const gfx::ImageSkia& image) OVERRIDE; 72 const gfx::ImageSkia& image) OVERRIDE;
73 73
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // When the destructor is invoked should the app be removed? 107 // When the destructor is invoked should the app be removed?
108 bool remove_app_; 108 bool remove_app_;
109 109
110 // Used to load the icon. 110 // Used to load the icon.
111 scoped_ptr<extensions::AppIconLoader> app_icon_loader_; 111 scoped_ptr<extensions::AppIconLoader> app_icon_loader_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(BookmarkAppBubbleView); 113 DISALLOW_COPY_AND_ASSIGN(BookmarkAppBubbleView);
114 }; 114 };
115 115
116 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ 116 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698