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

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

Issue 653843002: Mac: Attach Extension NSViews to the view hierarchy before creating renderers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DCHECK Created 5 years, 10 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
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 CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/extensions/extension_view.h" 10 #include "chrome/browser/extensions/extension_view.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 return host_->render_view_host(); 49 return host_->render_view_host();
50 } 50 }
51 void set_minimum_size(const gfx::Size& minimum_size) { 51 void set_minimum_size(const gfx::Size& minimum_size) {
52 minimum_size_ = minimum_size; 52 minimum_size_ = minimum_size;
53 } 53 }
54 void set_container(Container* container) { container_ = container; } 54 void set_container(Container* container) { container_ = container; }
55 55
56 void SetIsClipped(bool is_clipped); 56 void SetIsClipped(bool is_clipped);
57 57
58 // extensions::ExtensionView: 58 // extensions::ExtensionView:
59 void Init() override;
60 Browser* GetBrowser() override; 59 Browser* GetBrowser() override;
61 gfx::NativeView GetNativeView() override; 60 gfx::NativeView GetNativeView() override;
62 void ResizeDueToAutoResize(const gfx::Size& new_size) override; 61 void ResizeDueToAutoResize(const gfx::Size& new_size) override;
63 void RenderViewCreated() override; 62 void RenderViewCreated() override;
64 void HandleKeyboardEvent( 63 void HandleKeyboardEvent(
65 content::WebContents* source, 64 content::WebContents* source,
66 const content::NativeWebKeyboardEvent& event) override; 65 const content::NativeWebKeyboardEvent& event) override;
67 void DidStopLoading() override; 66 void DidStopLoading() override;
68 67
69 private: 68 private:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 bool is_clipped_; 107 bool is_clipped_;
109 108
110 // A handler to handle unhandled keyboard messages coming back from the 109 // A handler to handle unhandled keyboard messages coming back from the
111 // renderer process. 110 // renderer process.
112 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 111 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
113 112
114 DISALLOW_COPY_AND_ASSIGN(ExtensionViewViews); 113 DISALLOW_COPY_AND_ASSIGN(ExtensionViewViews);
115 }; 114 };
116 115
117 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ 116 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/extensions/extension_view_mac.mm ('k') | chrome/browser/ui/views/extensions/extension_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698