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

Side by Side Diff: content/browser/web_contents/interstitial_page_impl.h

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 int32 page_id, 95 int32 page_id,
96 const string16& title, 96 const string16& title,
97 base::i18n::TextDirection title_direction) OVERRIDE; 97 base::i18n::TextDirection title_direction) OVERRIDE;
98 virtual content::RendererPreferences GetRendererPrefs( 98 virtual content::RendererPreferences GetRendererPrefs(
99 content::BrowserContext* browser_context) const OVERRIDE; 99 content::BrowserContext* browser_context) const OVERRIDE;
100 virtual webkit_glue::WebPreferences GetWebkitPrefs() OVERRIDE; 100 virtual webkit_glue::WebPreferences GetWebkitPrefs() OVERRIDE;
101 virtual content::ViewType GetRenderViewType() const OVERRIDE; 101 virtual content::ViewType GetRenderViewType() const OVERRIDE;
102 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; 102 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
103 103
104 // RenderWidgetHostDelegate implementation: 104 // RenderWidgetHostDelegate implementation:
105 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 105 virtual bool PreHandleKeyboardEvent(
106 bool* is_keyboard_shortcut) OVERRIDE; 106 const content::NativeWebKeyboardEvent& event,
107 bool* is_keyboard_shortcut) OVERRIDE;
107 virtual void HandleKeyboardEvent( 108 virtual void HandleKeyboardEvent(
108 const NativeWebKeyboardEvent& event) OVERRIDE; 109 const content::NativeWebKeyboardEvent& event) OVERRIDE;
109 110
110 bool enabled() const { return enabled_; } 111 bool enabled() const { return enabled_; }
111 content::WebContents* web_contents() const; 112 content::WebContents* web_contents() const;
112 const GURL& url() const { return url_; } 113 const GURL& url() const { return url_; }
113 114
114 // Creates the RenderViewHost containing the interstitial content. 115 // Creates the RenderViewHost containing the interstitial content.
115 // Overriden in unit tests. 116 // Overriden in unit tests.
116 virtual content::RenderViewHost* CreateRenderViewHost(); 117 virtual content::RenderViewHost* CreateRenderViewHost();
117 118
118 // Creates the WebContentsView that shows the interstitial RVH. 119 // Creates the WebContentsView that shows the interstitial RVH.
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 mutable content::RendererPreferences renderer_preferences_; 194 mutable content::RendererPreferences renderer_preferences_;
194 195
195 bool create_view_; 196 bool create_view_;
196 197
197 scoped_ptr<content::InterstitialPageDelegate> delegate_; 198 scoped_ptr<content::InterstitialPageDelegate> delegate_;
198 199
199 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); 200 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl);
200 }; 201 };
201 202
202 #endif // CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ 203 #endif // CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/browser/web_contents/interstitial_page_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698