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

Side by Side Diff: chrome/browser/views/notifications/balloon_view_host.h

Issue 458013: Make the default RendererPreferences smarter.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/common/platform_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_
6 #define CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_ 6 #define CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_
7 7
8 #include "chrome/browser/notifications/balloon.h" 8 #include "chrome/browser/notifications/balloon.h"
9 #include "chrome/browser/renderer_host/render_view_host_delegate.h" 9 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
10 #include "chrome/browser/renderer_host/site_instance.h" 10 #include "chrome/browser/renderer_host/site_instance.h"
11 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" 11 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
12 #include "chrome/common/renderer_preferences.h"
12 #include "views/controls/native/native_view_host.h" 13 #include "views/controls/native/native_view_host.h"
13 #include "webkit/glue/webpreferences.h" 14 #include "webkit/glue/webpreferences.h"
14 15
15 class Profile; 16 class Profile;
16 class RenderViewHost; 17 class RenderViewHost;
17 18
18 // BalloonViewHost class is a delegate to the renderer host for the HTML 19 // BalloonViewHost class is a delegate to the renderer host for the HTML
19 // notification. When initialized it creates a new RenderViewHost and loads 20 // notification. When initialized it creates a new RenderViewHost and loads
20 // the contents of the toast into it. It also handles links within the toast, 21 // the contents of the toast into it. It also handles links within the toast,
21 // loading them into a new tab. 22 // loading them into a new tab.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void TakeFocus(bool reverse) {} 76 virtual void TakeFocus(bool reverse) {}
76 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) { 77 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) {
77 return false; 78 return false;
78 } 79 }
79 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { 80 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
80 return false; 81 return false;
81 } 82 }
82 virtual void HandleMouseEvent() {} 83 virtual void HandleMouseEvent() {}
83 virtual void HandleMouseLeave() {} 84 virtual void HandleMouseLeave() {}
84 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} 85 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {}
86 virtual RendererPreferences GetRendererPrefs() const { return RendererPreferen ces(); }
85 87
86 // Accessors. 88 // Accessors.
87 RenderViewHost* render_view_host() const { return render_view_host_; } 89 RenderViewHost* render_view_host() const { return render_view_host_; }
88 const std::wstring& title() const { return title_; } 90 const std::wstring& title() const { return title_; }
89 91
90 private: 92 private:
91 // View overrides. 93 // View overrides.
92 virtual void ViewHierarchyChanged(bool is_add, 94 virtual void ViewHierarchyChanged(bool is_add,
93 views::View *parent, 95 views::View *parent,
94 views::View *child); 96 views::View *child);
(...skipping 21 matching lines...) Expand all
116 // The title of the balloon page. 118 // The title of the balloon page.
117 std::wstring title_; 119 std::wstring title_;
118 120
119 // Common implementations of some RenderViewHostDelegate::View methods. 121 // Common implementations of some RenderViewHostDelegate::View methods.
120 RenderViewHostDelegateViewHelper delegate_view_helper_; 122 RenderViewHostDelegateViewHelper delegate_view_helper_;
121 123
122 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost); 124 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost);
123 }; 125 };
124 126
125 #endif // CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_ 127 #endif // CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/common/platform_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698