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

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

Issue 400012: Refactor the keyboard events handling code related to RenderViewHostDelegate:... (Closed) Base URL: svn://svn.chromium.org/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
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"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 bool user_gesture, 68 bool user_gesture,
69 const GURL& creator_url); 69 const GURL& creator_url);
70 virtual void ShowCreatedWidget(int route_id, 70 virtual void ShowCreatedWidget(int route_id,
71 const gfx::Rect& initial_pos) {} 71 const gfx::Rect& initial_pos) {}
72 virtual void ShowContextMenu(const ContextMenuParams& params) {} 72 virtual void ShowContextMenu(const ContextMenuParams& params) {}
73 virtual void StartDragging(const WebDropData& drop_data, 73 virtual void StartDragging(const WebDropData& drop_data,
74 WebKit::WebDragOperationsMask allowed_ops) {} 74 WebKit::WebDragOperationsMask allowed_ops) {}
75 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} 75 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {}
76 virtual void GotFocus() {} 76 virtual void GotFocus() {}
77 virtual void TakeFocus(bool reverse) {} 77 virtual void TakeFocus(bool reverse) {}
78 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event) { 78 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
79 bool* is_keyboard_shortcut) {
79 return false; 80 return false;
80 } 81 }
81 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { 82 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {}
82 return false;
83 }
84 virtual void HandleMouseEvent() {} 83 virtual void HandleMouseEvent() {}
85 virtual void HandleMouseLeave() {} 84 virtual void HandleMouseLeave() {}
86 virtual void UpdatePreferredSize(const gfx::Size& pref_size); 85 virtual void UpdatePreferredSize(const gfx::Size& pref_size);
87 virtual RendererPreferences GetRendererPrefs() const { 86 virtual RendererPreferences GetRendererPrefs() const {
88 return RendererPreferences(); 87 return RendererPreferences();
89 } 88 }
90 89
91 // Accessors. 90 // Accessors.
92 RenderViewHost* render_view_host() const { return render_view_host_; } 91 RenderViewHost* render_view_host() const { return render_view_host_; }
93 const std::wstring& title() const { return title_; } 92 const std::wstring& title() const { return title_; }
(...skipping 27 matching lines...) Expand all
121 // The title of the balloon page. 120 // The title of the balloon page.
122 std::wstring title_; 121 std::wstring title_;
123 122
124 // Common implementations of some RenderViewHostDelegate::View methods. 123 // Common implementations of some RenderViewHostDelegate::View methods.
125 RenderViewHostDelegateViewHelper delegate_view_helper_; 124 RenderViewHostDelegateViewHelper delegate_view_helper_;
126 125
127 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost); 126 DISALLOW_COPY_AND_ASSIGN(BalloonViewHost);
128 }; 127 };
129 128
130 #endif // CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_ 129 #endif // CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/browser/views/tab_contents/tab_contents_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698