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

Unified Diff: chrome/common/temp_scaffolding_stubs.cc

Issue 115827: More Linux linking issues fixed. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome.gyp ('k') | views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/temp_scaffolding_stubs.cc
===================================================================
--- chrome/common/temp_scaffolding_stubs.cc (revision 17032)
+++ chrome/common/temp_scaffolding_stubs.cc (working copy)
@@ -26,6 +26,10 @@
#include "chrome/browser/download/download_shelf.h"
#endif
+#if defined(TOOLKIT_VIEWS)
+#include "views/controls/menu/chrome_menu.h"
+#endif
+
class TabContents;
//--------------------------------------------------------------------------
@@ -294,10 +298,12 @@
}
#endif
+#if !defined(TOOLKIT_VIEWS)
void BrowserList::AllBrowsersClosed() {
// TODO(port): Close any dependent windows if necessary when the last browser
// window is closed.
}
+#endif
//--------------------------------------------------------------------------
@@ -316,3 +322,89 @@
return true;
}
#endif
+
+//------------------------------------------------------------------------------
+
+#if defined(OS_LINUX) && defined(TOOLKIT_VIEWS)
+namespace views {
+
+MenuItemView::MenuItemView(MenuDelegate* delegate) {
+}
+
+MenuItemView::~MenuItemView() {
+}
+
+MenuItemView* MenuItemView::AppendMenuItemInternal(int item_id,
+ const std::wstring& label,
+ const SkBitmap& icon,
+ Type type) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+void MenuItemView::RunMenuAt(gfx::NativeView parent,
+ const gfx::Rect& bounds,
+ AnchorPosition anchor,
+ bool has_mnemonics) {
+ NOTIMPLEMENTED();
+}
+
+void MenuItemView::RunMenuForDropAt(gfx::NativeView parent,
+ const gfx::Rect& bounds,
+ AnchorPosition anchor) {
+ NOTIMPLEMENTED();
+}
+
+// Hides and cancels the menu. This does nothing if the menu is not open.
+void MenuItemView::Cancel() {
+ NOTIMPLEMENTED();
+}
+
+SubmenuView* MenuItemView::CreateSubmenu() {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+void MenuItemView::SetSelected(bool selected) {
+ NOTIMPLEMENTED();
+}
+
+void MenuItemView::SetIcon(const SkBitmap& icon, int item_id) {
+ NOTIMPLEMENTED();
+}
+
+void MenuItemView::SetIcon(const SkBitmap& icon) {
+ NOTIMPLEMENTED();
+}
+
+void MenuItemView::Paint(gfx::Canvas* canvas) {
+ NOTIMPLEMENTED();
+}
+
+gfx::Size MenuItemView::GetPreferredSize() {
+ NOTIMPLEMENTED();
+ return gfx::Size();
+}
+
+MenuController* MenuItemView::GetMenuController() {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+MenuDelegate* MenuItemView::GetDelegate() {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+MenuItemView* MenuItemView::GetRootMenuItem() {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+wchar_t MenuItemView::GetMnemonic() {
+ return 'a';
+}
+
+} // namespace views
+
+#endif
« no previous file with comments | « chrome/chrome.gyp ('k') | views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698