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

Side by Side Diff: chrome/browser/views/dom_view.h

Issue 140001: Fix default focus in Gears dialogs (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/views/dom_view.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // DOMView is a ChromeView that displays the content of a web DOM. 5 // DOMView is a ChromeView that displays the content of a web DOM.
6 // It should be used with data: URLs. 6 // It should be used with data: URLs.
7 7
8 #ifndef CHROME_BROWSER_VIEWS_DOM_VIEW_H_ 8 #ifndef CHROME_BROWSER_VIEWS_DOM_VIEW_H_
9 #define CHROME_BROWSER_VIEWS_DOM_VIEW_H_ 9 #define CHROME_BROWSER_VIEWS_DOM_VIEW_H_
10 10
(...skipping 18 matching lines...) Expand all
29 // If |instance| is not null, then the view will be loaded in the same 29 // If |instance| is not null, then the view will be loaded in the same
30 // process as the given instance. 30 // process as the given instance.
31 bool Init(Profile* profile, SiteInstance* instance); 31 bool Init(Profile* profile, SiteInstance* instance);
32 32
33 // Loads the given URL into the page. You must have previously called Init(). 33 // Loads the given URL into the page. You must have previously called Init().
34 void LoadURL(const GURL& url); 34 void LoadURL(const GURL& url);
35 35
36 protected: 36 protected:
37 // Overridden from View. 37 // Overridden from View.
38 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e); 38 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e);
39 virtual void Focus();
39 40
40 scoped_ptr<TabContents> tab_contents_; 41 scoped_ptr<TabContents> tab_contents_;
41 42
42 private: 43 private:
43 bool initialized_; 44 bool initialized_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(DOMView); 46 DISALLOW_COPY_AND_ASSIGN(DOMView);
46 }; 47 };
47 48
48 #endif // CHROME_BROWSER_VIEWS_DOM_VIEW_H_ 49 #endif // CHROME_BROWSER_VIEWS_DOM_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/dom_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698